Searched refs:co_freevars (Results 1 – 16 of 16) sorted by relevance
/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 | frameobject.c | 507 …->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_traverse() 540 …->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_clear() 558 nfrees = PyTuple_GET_SIZE(f->f_code->co_freevars); in frame_sizeof() 676 nfrees = PyTuple_GET_SIZE(code->co_freevars); in PyFrame_New() 898 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_FastToLocals() 911 map_to_dict(co->co_freevars, nfreevars, in PyFrame_FastToLocals() 945 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_LocalsToFast() 951 dict_to_map(co->co_freevars, nfreevars, in PyFrame_LocalsToFast()
|
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() 604 eq = PyObject_RichCompareBool(co->co_freevars, cp->co_freevars, Py_EQ); in code_richcompare() 642 h5 = PyObject_Hash(co->co_freevars); in code_hash()
|
D | funcobject.c | 391 nfree = PyTuple_GET_SIZE(code->co_freevars); in func_new()
|
/external/python/cpython2/Lib/test/ |
D | test_new.py | 123 freevars = c.co_freevars
|
D | test_import.py | 510 code.co_freevars, code.co_cellvars)
|
D | test_sys.py | 635 nfrees = len(x.f_code.co_freevars)
|
/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/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/Python/ |
D | ceval.c | 2433 v = PyTuple_GET_ITEM(co->co_freevars, oparg - in PyEval_EvalFrameEx() 3563 if (PyTuple_GET_SIZE(co->co_freevars)) { in PyEval_EvalCodeEx() 3565 for (i = 0; i < PyTuple_GET_SIZE(co->co_freevars); ++i) { in PyEval_EvalCodeEx()
|
D | marshal.c | 439 w_object(co->co_freevars, p); in w_object()
|
D | compile.c | 1272 PyObject *name = PyTuple_GET_ITEM(co->co_freevars, i); in compiler_make_closure() 1293 PyString_AS_STRING(PyObject_Repr(co->co_freevars))); in compiler_make_closure()
|
/external/python/cpython2/Doc/reference/ |
D | datamodel.rst | 939 single: co_freevars (code object attribute) 947 referenced by nested functions; :attr:`co_freevars` is a tuple containing the
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 1282 co_freevars (tuple, R/O)) names of free variables
|