Home
last modified time | relevance | path

Searched refs:nclosure (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dfuncobject.c237 Py_ssize_t nfree, nclosure; in func_set_code() local
249 nclosure = (op->func_closure == NULL ? 0 : in func_set_code()
251 if (nclosure != nfree) { in func_set_code()
256 nclosure, nfree); in func_set_code()
371 Py_ssize_t nfree, nclosure; in func_new() local
406 nclosure = closure == Py_None ? 0 : PyTuple_GET_SIZE(closure); in func_new()
407 if (nfree != nclosure) in func_new()
411 nfree, nclosure); in func_new()
412 if (nclosure) { in func_new()
414 for (i = 0; i < nclosure; i++) { in func_new()
/external/python/cpython3/Objects/
Dfuncobject.c254 Py_ssize_t nfree, nclosure; in func_set_code() local
264 nclosure = (op->func_closure == NULL ? 0 : in func_set_code()
266 if (nclosure != nfree) { in func_set_code()
271 nclosure, nfree); in func_set_code()
461 Py_ssize_t nfree, nclosure; in func_new_impl() local
488 nclosure = closure == Py_None ? 0 : PyTuple_GET_SIZE(closure); in func_new_impl()
489 if (nfree != nclosure) in func_new_impl()
492 code->co_name, nfree, nclosure); in func_new_impl()
493 if (nclosure) { in func_new_impl()
495 for (i = 0; i < nclosure; i++) { in func_new_impl()