/external/python/cpython3/Objects/clinic/ |
D | codeobject.c.h | 25 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/ |
D | code.h | 20 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/ |
D | codeobject.c | 135 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()
|
D | frameobject.c | 543 …->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()
|
D | funcobject.c | 391 nfree = PyTuple_GET_SIZE(code->co_freevars); in func_new()
|
/external/python/cpython3/Include/cpython/ |
D | code.h | 31 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/ |
D | dis.py | 177 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/ |
D | codeobject.c | 244 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()
|
D | frameobject.c | 619 + 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()
|
D | funcobject.c | 516 nfree = PyTuple_GET_SIZE(code->co_freevars); in func_new_impl()
|
/external/python/cpython3/Lib/test/ |
D | test_code.py | 183 return c.replace(co_freevars=c.co_freevars + ('__class__',)) 230 co.co_freevars,
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | transpiler.py | 200 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())
|
D | inspect_utils.py | 170 freevars = six.get_function_code(f).co_freevars
|
/external/tensorflow/tensorflow/python/platform/ |
D | benchmark.py | 66 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/ |
D | test_new.py | 123 freevars = c.co_freevars
|
D | test_import.py | 509 code.co_freevars, code.co_cellvars)
|
D | test_sys.py | 646 nfrees = len(x.f_code.co_freevars)
|
/external/python/cpython2/Lib/ |
D | dis.py | 106 free = co.co_cellvars + co.co_freevars
|
D | modulefinder.py | 613 co.co_freevars, co.co_cellvars)
|
/external/python/cpython2/Doc/library/ |
D | new.rst | 46 cell objects containing objects to bind to the names in ``code.co_freevars``.
|
D | dis.rst | 776 less than the length of *co_cellvars*. Otherwise it is ``co_freevars[i -
|
/external/python/cpython3/Python/ |
D | ceval.c | 2668 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()
|
D | marshal.c | 522 w_object(co->co_freevars, p); in w_complex_object()
|
/external/python/cpython2/Python/ |
D | marshal.c | 439 w_object(co->co_freevars, p); in w_object()
|
D | ceval.c | 2445 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()
|