Home
last modified time | relevance | path

Searched refs:func_defaults (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython2/Objects/
Dfuncobject.c26 op->func_defaults = NULL; /* No default arguments */ in PyFunction_New()
100 return ((PyFunctionObject *) op) -> func_defaults; in PyFunction_GetDefaults()
119 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
299 if (op->func_defaults == NULL) { in func_get_defaults()
303 Py_INCREF(op->func_defaults); in func_get_defaults()
304 return op->func_defaults; in func_get_defaults()
323 tmp = op->func_defaults; in func_set_defaults()
325 op->func_defaults = value; in func_set_defaults()
435 newfunc->func_defaults = defaults; in func_new()
455 Py_XDECREF(op->func_defaults); in func_dealloc()
[all …]
/external/python/cpython2/Lib/test/
Dtest_funcattrs.py140 self.assertEqual(self.b.func_defaults, None)
141 del self.b.func_defaults
142 self.assertEqual(self.b.func_defaults, None)
149 self.assertEqual(first_func.func_defaults, None)
150 self.assertEqual(second_func.func_defaults, (1, 2))
151 first_func.func_defaults = (1, 2)
152 self.assertEqual(first_func.func_defaults, (1, 2))
156 del second_func.func_defaults
157 self.assertEqual(second_func.func_defaults, None)
Dtest_urllib.py580 self.assertEqual(urllib.quote.func_defaults[0], '/')
/external/python/cpython3/Objects/
Dfuncobject.c34 op->func_defaults = NULL; /* No default arguments */ in PyFunction_NewWithQualName()
113 return ((PyFunctionObject *) op) -> func_defaults; in PyFunction_GetDefaults()
132 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
326 if (op->func_defaults == NULL) { in func_get_defaults()
329 Py_INCREF(op->func_defaults); in func_get_defaults()
330 return op->func_defaults; in func_get_defaults()
346 Py_XSETREF(op->func_defaults, value); in func_set_defaults()
516 newfunc->func_defaults = defaults; in func_new_impl()
536 Py_XDECREF(op->func_defaults); in func_dealloc()
559 Py_VISIT(f->func_defaults); in func_traverse()
/external/python/cpython2/Include/
Dfuncobject.h25 PyObject *func_defaults; /* NULL or a tuple */ member
62 (((PyFunctionObject *)func) -> func_defaults)
/external/python/cpython3/Include/
Dfuncobject.h25 PyObject *func_defaults; /* NULL or a tuple */ member
84 (((PyFunctionObject *)func) -> func_defaults)
/external/python/cpython2/Tools/framer/framer/
Dfunction.py109 if func.func_defaults:
110 L = list(func.func_defaults)
/external/python/cpython2/Lib/idlelib/
DCallTips.py182 defaults = fob.func_defaults or []
/external/pdfium/third_party/pymock/
Dmock.py223 funcopy.func_defaults = func.func_defaults
/external/python/cpython2/Lib/
Dinspect.py827 return ArgSpec(args, varargs, varkw, func.func_defaults)
/external/python/mock/mock/
Dmock.py236 funcopy.func_defaults = func.func_defaults
/external/python/cpython2/Doc/library/
Dinspect.rst77 | | func_defaults | tuple of any default | |
/external/python/six/documentation/
Dindex.rst152 ``func.__defaults__`` on Python 2.6+ and ``func.func_defaults`` on Python
/external/python/cpython2/Lib/lib-tk/
Dturtle.py3791 defaults = fob.func_defaults or []
/external/python/cpython3/Doc/whatsnew/
D3.0.rst785 :attr:`func_closure`, :attr:`func_code`, :attr:`func_defaults`,
/external/python/cpython3/Python/
Dceval.c3229 func->func_defaults = POP(); in _PyEval_EvalFrameDefault()
/external/python/cpython2/Doc/reference/
Ddatamodel.rst496 single: func_defaults (function attribute)
518 | :attr:`func_defaults` | argument values for those | |
/external/python/cpython2/Misc/
Dcheatsheet1254 func_defaults (tuple/None, R/W): default args values if any
DHISTORY11542 func_defaults and func_doc / __doc__. (With type checks except for
/external/python/cpython3/Misc/
DHISTORY28921 func_defaults and func_doc / __doc__. (With type checks except for