Searched refs:func_closure (Results 1 – 11 of 11) 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/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 | 554 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/cpython2/Doc/library/ |
D | 2to3.rst | 244 ``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/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
|