Searched refs:func_closure (Results 1 – 17 of 17) sorted by relevance
/external/python/cpython2/Objects/ |
D | funcobject.c | 27 op->func_closure = NULL; in PyFunction_New() 130 return ((PyFunctionObject *) op) -> func_closure; in PyFunction_GetClosure() 151 Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); in PyFunction_SetClosure() 160 {"func_closure", T_OBJECT, OFF(func_closure), 162 {"__closure__", T_OBJECT, OFF(func_closure), 249 nclosure = (op->func_closure == NULL ? 0 : in func_set_code() 250 PyTuple_GET_SIZE(op->func_closure)); in func_set_code() 439 newfunc->func_closure = closure; in func_new() 458 Py_XDECREF(op->func_closure); in func_dealloc() 480 Py_VISIT(f->func_closure); in func_traverse()
|
/external/python/cpython3/Objects/ |
D | funcobject.c | 36 op->func_closure = NULL; in PyFunction_NewWithQualName() 174 return ((PyFunctionObject *) op) -> func_closure; in PyFunction_GetClosure() 195 Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); in PyFunction_SetClosure() 235 {"__closure__", T_OBJECT, OFF(func_closure), 264 nclosure = (op->func_closure == NULL ? 0 : in func_set_code() 265 PyTuple_GET_SIZE(op->func_closure)); in func_set_code() 520 newfunc->func_closure = closure; in func_new_impl() 540 Py_XDECREF(op->func_closure); in func_dealloc() 564 Py_VISIT(f->func_closure); in func_traverse()
|
/external/python/cpython2/Lib/test/ |
D | test_undocumented_details.py | 24 g_cell, = g.func_closure 25 h_cell, = h.func_closure
|
D | test_new.py | 92 g2 = new.function(g.func_code, {}, "blah", (2,), g.func_closure) 94 g3 = new.function(g.func_code, {}, "blah", None, g.func_closure) 102 test_closure(f, g.func_closure, ValueError) # no closure needed
|
D | test_funcattrs.py | 70 c = f.func_closure 80 f.func_closure[0].cell_contents
|
D | test_py3kwarn.py | 121 cell0, = f(0).func_closure 122 cell1, = f(1).func_closure
|
D | test_sys.py | 565 check(get_cell().func_closure[0], size('P'))
|
/external/python/cpython2/Include/ |
D | funcobject.h | 26 PyObject *func_closure; /* NULL or a tuple of cell objects */ member 64 (((PyFunctionObject *)func) -> func_closure)
|
/external/python/cpython3/Include/ |
D | funcobject.h | 27 PyObject *func_closure; /* NULL or a tuple of cell objects */ member 88 (((PyFunctionObject *)func) -> func_closure)
|
/external/python/cpython2/Doc/library/ |
D | 2to3.rst | 237 ``my_function.func_closure`` is converted to ``my_function.__closure__``.
|
D | dis.rst | 825 Creates a new function object, sets its *func_closure* slot, and pushes it on
|
/external/python/cpython3/Doc/library/ |
D | 2to3.rst | 237 ``my_function.func_closure`` is converted to ``my_function.__closure__``.
|
/external/python/six/documentation/ |
D | index.rst | 139 to ``func.__closure__`` on Python 2.6+ and ``func.func_closure`` on Python
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.0.rst | 785 :attr:`func_closure`, :attr:`func_code`, :attr:`func_defaults`,
|
/external/python/cpython3/Python/ |
D | ceval.c | 3217 func ->func_closure = POP(); in _PyEval_EvalFrameDefault()
|
/external/python/cpython2/Doc/reference/ |
D | datamodel.rst | 499 single: func_closure (function attribute) 538 | :attr:`func_closure` | that contain bindings for the | |
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 1259 func_closure (R/O): None or a tuple of cells that contain bindings
|