Searched refs:func_defaults (Results 1 – 20 of 20) sorted by relevance
/external/python/cpython2/Objects/ |
D | funcobject.c | 26 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/ |
D | test_funcattrs.py | 140 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)
|
D | test_urllib.py | 580 self.assertEqual(urllib.quote.func_defaults[0], '/')
|
/external/python/cpython3/Objects/ |
D | funcobject.c | 34 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/ |
D | funcobject.h | 25 PyObject *func_defaults; /* NULL or a tuple */ member 62 (((PyFunctionObject *)func) -> func_defaults)
|
/external/python/cpython3/Include/ |
D | funcobject.h | 25 PyObject *func_defaults; /* NULL or a tuple */ member 84 (((PyFunctionObject *)func) -> func_defaults)
|
/external/python/cpython2/Tools/framer/framer/ |
D | function.py | 109 if func.func_defaults: 110 L = list(func.func_defaults)
|
/external/python/cpython2/Lib/idlelib/ |
D | CallTips.py | 182 defaults = fob.func_defaults or []
|
/external/pdfium/third_party/pymock/ |
D | mock.py | 223 funcopy.func_defaults = func.func_defaults
|
/external/python/cpython2/Lib/ |
D | inspect.py | 827 return ArgSpec(args, varargs, varkw, func.func_defaults)
|
/external/python/mock/mock/ |
D | mock.py | 236 funcopy.func_defaults = func.func_defaults
|
/external/python/cpython2/Doc/library/ |
D | inspect.rst | 77 | | func_defaults | tuple of any default | |
|
/external/python/six/documentation/ |
D | index.rst | 152 ``func.__defaults__`` on Python 2.6+ and ``func.func_defaults`` on Python
|
/external/python/cpython2/Lib/lib-tk/ |
D | turtle.py | 3791 defaults = fob.func_defaults or []
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.0.rst | 785 :attr:`func_closure`, :attr:`func_code`, :attr:`func_defaults`,
|
/external/python/cpython3/Python/ |
D | ceval.c | 3229 func->func_defaults = POP(); in _PyEval_EvalFrameDefault()
|
/external/python/cpython2/Doc/reference/ |
D | datamodel.rst | 496 single: func_defaults (function attribute) 518 | :attr:`func_defaults` | argument values for those | |
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 1254 func_defaults (tuple/None, R/W): default args values if any
|
D | HISTORY | 11542 func_defaults and func_doc / __doc__. (With type checks except for
|
/external/python/cpython3/Misc/ |
D | HISTORY | 28921 func_defaults and func_doc / __doc__. (With type checks except for
|