Searched refs:co_argcount (Results 1 – 17 of 17) sorted by relevance
/third_party/python/Objects/clinic/ |
D | codeobject.c.h | 156 code_replace_impl(PyCodeObject *self, int co_argcount, 173 int co_argcount = self->co_argcount; in code_replace() local 198 co_argcount = _PyLong_AsInt(args[0]); in code_replace() 199 if (co_argcount == -1 && PyErr_Occurred()) { in code_replace() 352 …return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nloc… in code_replace()
|
/third_party/python/Objects/ |
D | codeobject.c | 237 co->co_argcount = argcount; in PyCode_NewWithPosOnlyArgs() 384 {"co_argcount", T_INT, OFF(co_argcount), READONLY}, 723 code_replace_impl(PyCodeObject *self, int co_argcount, in code_replace_impl() argument 740 CHECK_INT_ARG(co_argcount); in code_replace_impl() 751 co_code, co_filename, co_name, co_argcount, in code_replace_impl() 758 co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, in code_replace_impl() 932 eq = co->co_argcount == cp->co_argcount; in code_richcompare() 1008 co->co_argcount ^ co->co_posonlyargcount ^ co->co_kwonlyargcount ^ in code_hash()
|
D | typeobject.c | 8862 if (co->co_argcount == 0) { in super_init_without_args()
|
/third_party/python/Include/cpython/ |
D | code.h | 20 int co_argcount; /* #arguments, except *args */ member
|
/third_party/python/Python/ |
D | ceval.c | 4634 end = co->co_argcount - defcount; in missing_arguments() 4637 start = co->co_argcount; in missing_arguments() 4665 Py_ssize_t co_argcount = co->co_argcount; in too_many_positional() local 4669 for (i = co_argcount; i < co_argcount + co->co_kwonlyargcount; i++) { in too_many_positional() 4676 Py_ssize_t atleast = co_argcount - defcount; in too_many_positional() 4678 sig = PyUnicode_FromFormat("from %zd to %zd", atleast, co_argcount); in too_many_positional() 4681 plural = (co_argcount != 1); in too_many_positional() 4682 sig = PyUnicode_FromFormat("%zd", co_argcount); in too_many_positional() 4787 const Py_ssize_t total_args = co->co_argcount + co->co_kwonlyargcount; in _PyEval_MakeFrameVector() 4816 if (argcount > co->co_argcount) { in _PyEval_MakeFrameVector() [all …]
|
D | marshal.c | 512 w_long(co->co_argcount, p); in w_complex_object()
|
/third_party/jinja2/ |
D | debug.py | 125 code.co_argcount,
|
/third_party/python/Lib/test/ |
D | test_positional_only_arg.py | 103 self.assertEqual(5, f.__code__.co_argcount) # 3 posonly + 2 "standard args" 110 self.assertEqual(5, f.__code__.co_argcount) # 3 posonly + 2 "standard args"
|
D | test_code.py | 216 CodeType(co.co_argcount,
|
D | test_subprocess.py | 283 argcount = subprocess.Popen.__init__.__code__.co_argcount
|
/third_party/python/Lib/ |
D | dis.py | 159 lines.append("Argument count: %s" % co.co_argcount)
|
D | inspect.py | 1201 nargs = co.co_argcount 2297 pos_count = func_code.co_argcount
|
D | pdb.py | 1143 n = co.co_argcount + co.co_kwonlyargcount
|
D | typing.py | 1733 pos_count = code.co_argcount
|
/third_party/python/Misc/NEWS.d/ |
D | 3.8.0b1.rst | 58 Make the *co_argcount* attribute of code objects represent the total number 61 positional only, and the difference (*co_argcount* - *co_posonlyargcount*)
|
/third_party/python/Doc/library/ |
D | inspect.rst | 146 | code | co_argcount | number of arguments (not |
|
/third_party/python/Doc/reference/ |
D | datamodel.rst | 957 single: co_argcount (code object attribute) 975 :attr:`co_argcount` is the total number of positional arguments
|