Home
last modified time | relevance | path

Searched refs:co_freevars (Results 1 – 25 of 36) sorted by relevance

12

/external/python/cpython2/Objects/
Dcodeobject.c135 co->co_freevars = freevars; in PyCode_New()
209 {"co_freevars", T_OBJECT, OFF(co_freevars), READONLY},
351 Py_XDECREF(co->co_freevars); in code_dealloc()
405 cmp = PyObject_Compare(co->co_freevars, cp->co_freevars); in code_compare()
603 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
641 h5 = PyObject_Hash(co->co_freevars); in code_hash()
Dframeobject.c543 …->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_traverse()
576 …->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_clear()
594 nfrees = PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_sizeof()
712 nfrees = PyTuple_GET_SIZE(code->co_freevars); in PyFrame_New()
934 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_FastToLocals()
947 map_to_dict(co->co_freevars, nfreevars, in PyFrame_FastToLocals()
981 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_LocalsToFast()
987 dict_to_map(co->co_freevars, nfreevars, in PyFrame_LocalsToFast()
Dfuncobject.c391 nfree = PyTuple_GET_SIZE(code->co_freevars); in func_new()
/external/python/cpython2/Include/
Dcode.h20 PyObject *co_freevars; /* tuple of strings (free variable names) */ member
68 #define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
/external/python/cpython3/Objects/
Dframeobject.c513 …->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_traverse()
544 …->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_tp_clear()
582 nfrees = PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_sizeof()
709 nfrees = PyTuple_GET_SIZE(code->co_freevars); in _PyFrame_New_NoTrack()
952 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_FastToLocalsWithError()
967 if (map_to_dict(co->co_freevars, nfreevars, in PyFrame_FastToLocalsWithError()
1014 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_LocalsToFast()
1020 dict_to_map(co->co_freevars, nfreevars, in PyFrame_LocalsToFast()
Dcodeobject.c207 co->co_freevars = freevars; in PyCode_New()
284 {"co_freevars", T_OBJECT, OFF(co_freevars), READONLY},
449 Py_XDECREF(co->co_freevars); in code_dealloc()
671 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
709 h5 = PyObject_Hash(co->co_freevars); in code_hash()
Dfuncobject.c473 nfree = PyTuple_GET_SIZE(code->co_freevars); in func_new_impl()
Dtypeobject.c7712 if (co->co_freevars == NULL) in super_init()
7715 assert(PyTuple_Check(co->co_freevars)); in super_init()
7716 n = PyTuple_GET_SIZE(co->co_freevars); in super_init()
7719 PyObject *name = PyTuple_GET_ITEM(co->co_freevars, i); in super_init()
/external/python/cpython3/Include/
Dcode.h33 PyObject *co_freevars; /* tuple of strings (free variable names) */ member
101 #define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
/external/python/cpython3/Lib/
Ddis.py167 if co.co_freevars:
169 for i_n in enumerate(co.co_freevars):
263 cell_names = co.co_cellvars + co.co_freevars
354 cell_names = co.co_cellvars + co.co_freevars
477 self._cell_names = co.co_cellvars + co.co_freevars
Dtypes.py264 co.co_name, co.co_firstlineno, co.co_lnotab, co.co_freevars,
Dmodulefinder.py566 co.co_firstlineno, co.co_lnotab, co.co_freevars,
/external/python/cpython2/Lib/test/
Dtest_new.py123 freevars = c.co_freevars
Dtest_import.py509 code.co_freevars, code.co_cellvars)
Dtest_sys.py646 nfrees = len(x.f_code.co_freevars)
/external/python/cpython2/Doc/library/
Dnew.rst46 cell objects containing objects to bind to the names in ``code.co_freevars``.
/external/tensorflow/tensorflow/python/autograph/pyct/
Dinspect_utils.py101 freevars = six.get_function_code(f).co_freevars
/external/python/cpython2/Lib/
Ddis.py106 free = co.co_cellvars + co.co_freevars
Dmodulefinder.py613 co.co_freevars, co.co_cellvars)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Drev_block_lib.py496 if fn.__code__.co_freevars:
497 closed_over_vars = dict(zip(fn.__code__.co_freevars,
/external/python/cpython3/Lib/test/
Dtest_code.py163 c.co_lnotab, c.co_freevars + ('__class__',), c.co_cellvars)
/external/python/cpython3/Python/
Dceval.c2192 assert(idx >= 0 && idx < PyTuple_GET_SIZE(co->co_freevars)); in _PyEval_EvalFrameDefault()
2193 name = PyTuple_GET_ITEM(co->co_freevars, idx); in _PyEval_EvalFrameDefault()
3878 for (i = 0; i < PyTuple_GET_SIZE(co->co_freevars); ++i) { in _PyEval_EvalCodeWithName()
4980 name = PyTuple_GET_ITEM(co->co_freevars, oparg - in format_exc_unbound()
/external/python/cpython2/Python/
Dmarshal.c439 w_object(co->co_freevars, p); in w_object()
Dceval.c2445 v = PyTuple_GET_ITEM(co->co_freevars, oparg - in PyEval_EvalFrameEx()
3583 if (PyTuple_GET_SIZE(co->co_freevars)) { in PyEval_EvalCodeEx()
3585 for (i = 0; i < PyTuple_GET_SIZE(co->co_freevars); ++i) { in PyEval_EvalCodeEx()
/external/python/cpython3/Lib/test/test_import/
D__init__.py613 code.co_freevars, code.co_cellvars)

12