Home
last modified time | relevance | path

Searched refs:func_closure (Results 1 – 17 of 17) 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/cpython3/Objects/
Dfuncobject.c36 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/
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.py565 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/cpython3/Include/
Dfuncobject.h27 PyObject *func_closure; /* NULL or a tuple of cell objects */ member
88 (((PyFunctionObject *)func) -> func_closure)
/external/python/cpython2/Doc/library/
D2to3.rst237 ``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/cpython3/Doc/library/
D2to3.rst237 ``my_function.func_closure`` is converted to ``my_function.__closure__``.
/external/python/six/documentation/
Dindex.rst139 to ``func.__closure__`` on Python 2.6+ and ``func.func_closure`` on Python
/external/python/cpython3/Doc/whatsnew/
D3.0.rst785 :attr:`func_closure`, :attr:`func_code`, :attr:`func_defaults`,
/external/python/cpython3/Python/
Dceval.c3217 func ->func_closure = POP(); in _PyEval_EvalFrameDefault()
/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