Home
last modified time | relevance | path

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

/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/
Dframeobject.c507 …->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()
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()
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()
Dfuncobject.c391 nfree = PyTuple_GET_SIZE(code->co_freevars); in func_new()
/external/python/cpython2/Lib/test/
Dtest_new.py123 freevars = c.co_freevars
Dtest_import.py510 code.co_freevars, code.co_cellvars)
Dtest_sys.py635 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``.
Ddis.rst776 less than the length of *co_cellvars*. Otherwise it is ``co_freevars[i -
/external/python/cpython2/Lib/
Ddis.py106 free = co.co_cellvars + co.co_freevars
Dmodulefinder.py613 co.co_freevars, co.co_cellvars)
/external/python/cpython2/Python/
Dceval.c2433 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()
Dmarshal.c439 w_object(co->co_freevars, p); in w_object()
Dcompile.c1272 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/
Ddatamodel.rst939 single: co_freevars (code object attribute)
947 referenced by nested functions; :attr:`co_freevars` is a tuple containing the
/external/python/cpython2/Misc/
Dcheatsheet1282 co_freevars (tuple, R/O)) names of free variables