Home
last modified time | relevance | path

Searched refs:func_closure (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython2/Objects/
Dfuncobject.c27 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/
Dtest_undocumented_details.py24 g_cell, = g.func_closure
25 h_cell, = h.func_closure
Dtest_new.py92 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
Dtest_funcattrs.py70 c = f.func_closure
80 f.func_closure[0].cell_contents
Dtest_py3kwarn.py121 cell0, = f(0).func_closure
122 cell1, = f(1).func_closure
Dtest_sys.py554 check(get_cell().func_closure[0], size('P'))
/external/python/cpython2/Include/
Dfuncobject.h26 PyObject *func_closure; /* NULL or a tuple of cell objects */ member
64 (((PyFunctionObject *)func) -> func_closure)
/external/python/cpython2/Doc/library/
D2to3.rst244 ``my_function.func_closure`` is converted to ``my_function.__closure__``.
Ddis.rst825 Creates a new function object, sets its *func_closure* slot, and pushes it on
/external/python/cpython2/Doc/reference/
Ddatamodel.rst499 single: func_closure (function attribute)
538 | :attr:`func_closure` | that contain bindings for the | |
/external/python/cpython2/Misc/
Dcheatsheet1259 func_closure (R/O): None or a tuple of cells that contain bindings