Home
last modified time | relevance | path

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

12

/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h25 PyObject *co_varnames, PyObject *co_freevars,
48 PyObject *co_freevars = self->co_freevars; in code_replace() local
204 co_freevars = args[11]; in code_replace()
251 …, co_flags, co_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, c… in code_replace()
/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/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/cpython3/Include/cpython/
Dcode.h31 PyObject *co_freevars; /* tuple of strings (free variable names) */ member
114 #define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
/external/python/cpython3/Lib/
Ddis.py177 if co.co_freevars:
179 for i_n in enumerate(co.co_freevars):
273 cell_names = co.co_cellvars + co.co_freevars
367 cell_names = co.co_cellvars + co.co_freevars
495 self._cell_names = co.co_cellvars + co.co_freevars
/external/python/cpython3/Objects/
Dcodeobject.c244 co->co_freevars = freevars; in PyCode_NewWithPosOnlyArgs()
386 {"co_freevars", T_OBJECT, OFF(co_freevars), READONLY},
576 Py_XDECREF(co->co_freevars); in code_dealloc()
643 PyObject *co_varnames, PyObject *co_freevars, in code_replace_impl() argument
675 co_varnames, co_freevars, co_cellvars, co_filename, co_name, in code_replace_impl()
880 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare()
918 h5 = PyObject_Hash(co->co_freevars); in code_hash()
Dframeobject.c619 + PyTuple_GET_SIZE(code->co_freevars)); in frame_nslots()
702 nfrees = PyTuple_GET_SIZE(code->co_freevars); in frame_sizeof()
782 Py_ssize_t nfrees = PyTuple_GET_SIZE(code->co_freevars); in frame_alloc()
1100 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_FastToLocalsWithError()
1115 if (map_to_dict(co->co_freevars, nfreevars, in PyFrame_FastToLocalsWithError()
1162 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_LocalsToFast()
1168 dict_to_map(co->co_freevars, nfreevars, in PyFrame_LocalsToFast()
Dfuncobject.c516 nfree = PyTuple_GET_SIZE(code->co_freevars); in func_new_impl()
/external/python/cpython3/Lib/test/
Dtest_code.py183 return c.replace(co_freevars=c.co_freevars + ('__class__',))
230 co.co_freevars,
/external/tensorflow/tensorflow/python/autograph/pyct/
Dtranspiler.py200 factory_freevars = factory_code.co_freevars
203 closure_map[name] for name in factory_code.co_freevars)
489 ctx.info.name, fn.__code__.co_freevars, self.get_extra_locals())
Dinspect_utils.py170 freevars = six.get_function_code(f).co_freevars
/external/tensorflow/tensorflow/python/platform/
Dbenchmark.py66 func_code.co_freevars, func_code.co_cellvars)
77 func_code.co_freevars, func_code.co_cellvars)
85 func_code.co_freevars, func_code.co_cellvars)
/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/Lib/
Ddis.py106 free = co.co_cellvars + co.co_freevars
Dmodulefinder.py613 co.co_freevars, co.co_cellvars)
/external/python/cpython2/Doc/library/
Dnew.rst46 cell objects containing objects to bind to the names in ``code.co_freevars``.
Ddis.rst776 less than the length of *co_cellvars*. Otherwise it is ``co_freevars[i -
/external/python/cpython3/Python/
Dceval.c2668 assert(idx >= 0 && idx < PyTuple_GET_SIZE(co->co_freevars)); in _PyEval_EvalFrameDefault()
2669 name = PyTuple_GET_ITEM(co->co_freevars, idx); in _PyEval_EvalFrameDefault()
4294 for (i = 0; i < PyTuple_GET_SIZE(co->co_freevars); ++i) { in _PyEval_EvalCode()
5474 name = PyTuple_GET_ITEM(co->co_freevars, oparg - in format_exc_unbound()
Dmarshal.c522 w_object(co->co_freevars, p); in w_complex_object()
/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()

12