Searched refs:co_argcount (Results 1 – 17 of 17) sorted by relevance
/third_party/python/Objects/clinic/ |
D | codeobject.c.h | 20 code_replace_impl(PyCodeObject *self, int co_argcount, 37 int co_argcount = self->co_argcount; in code_replace() local 67 co_argcount = _PyLong_AsInt(args[0]); in code_replace() 68 if (co_argcount == -1 && PyErr_Occurred()) { in code_replace() 251 …return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nloc… in code_replace()
|
/third_party/python/Objects/ |
D | codeobject.c | 229 co->co_argcount = argcount; in PyCode_NewWithPosOnlyArgs() 376 {"co_argcount", T_INT, OFF(co_argcount), READONLY}, 638 code_replace_impl(PyCodeObject *self, int co_argcount, in code_replace_impl() argument 655 CHECK_INT_ARG(co_argcount); in code_replace_impl() 666 co_code, co_filename, co_name, co_argcount, in code_replace_impl() 673 co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, in code_replace_impl() 847 eq = co->co_argcount == cp->co_argcount; in code_richcompare() 923 co->co_argcount ^ co->co_posonlyargcount ^ co->co_kwonlyargcount ^ in code_hash()
|
D | call.c | 366 if (argdefs == NULL && co->co_argcount == nargs) { in _PyFunction_Vectorcall() 370 && co->co_argcount == PyTuple_GET_SIZE(argdefs)) { in _PyFunction_Vectorcall()
|
D | typeobject.c | 8067 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 | 3929 end = co->co_argcount - defcount; in missing_arguments() 3932 start = co->co_argcount; in missing_arguments() 3960 Py_ssize_t co_argcount = co->co_argcount; in too_many_positional() local 3964 for (i = co_argcount; i < co_argcount + co->co_kwonlyargcount; i++) { in too_many_positional() 3970 Py_ssize_t atleast = co_argcount - defcount; in too_many_positional() 3972 sig = PyUnicode_FromFormat("from %zd to %zd", atleast, co_argcount); in too_many_positional() 3975 plural = (co_argcount != 1); in too_many_positional() 3976 sig = PyUnicode_FromFormat("%zd", co_argcount); in too_many_positional() 4090 const Py_ssize_t total_args = co->co_argcount + co->co_kwonlyargcount; in _PyEval_EvalCode() 4124 if (argcount > co->co_argcount) { in _PyEval_EvalCode() [all …]
|
D | marshal.c | 512 w_long(co->co_argcount, p); in w_complex_object()
|
/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 return CodeType(co.co_argcount,
|
D | test_subprocess.py | 274 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 | 1078 nargs = co.co_argcount 2170 pos_count = func_code.co_argcount
|
D | pdb.py | 1140 n = co.co_argcount + co.co_kwonlyargcount
|
D | typing.py | 1351 pos_count = code.co_argcount
|
/third_party/python/Doc/library/ |
D | inspect.rst | 144 | code | co_argcount | number of arguments (not |
|
/third_party/python/Doc/reference/ |
D | datamodel.rst | 924 single: co_argcount (code object attribute) 942 :attr:`co_argcount` is the total number of positional arguments
|
/third_party/python/Misc/ |
D | NEWS | 5924 - bpo-37122: Make the *co_argcount* attribute of code objects represent the 5927 which arguments are positional only, and the difference (*co_argcount* -
|