Home
last modified time | relevance | path

Searched refs:co_argcount (Results 1 – 17 of 17) sorted by relevance

/third_party/python/Objects/clinic/
Dcodeobject.c.h20 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/
Dcodeobject.c229 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()
Dcall.c366 if (argdefs == NULL && co->co_argcount == nargs) { in _PyFunction_Vectorcall()
370 && co->co_argcount == PyTuple_GET_SIZE(argdefs)) { in _PyFunction_Vectorcall()
Dtypeobject.c8067 if (co->co_argcount == 0) { in super_init_without_args()
/third_party/python/Include/cpython/
Dcode.h20 int co_argcount; /* #arguments, except *args */ member
/third_party/python/Python/
Dceval.c3929 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 …]
Dmarshal.c512 w_long(co->co_argcount, p); in w_complex_object()
/third_party/python/Lib/test/
Dtest_positional_only_arg.py103 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"
Dtest_code.py216 return CodeType(co.co_argcount,
Dtest_subprocess.py274 argcount = subprocess.Popen.__init__.__code__.co_argcount
/third_party/python/Lib/
Ddis.py159 lines.append("Argument count: %s" % co.co_argcount)
Dinspect.py1078 nargs = co.co_argcount
2170 pos_count = func_code.co_argcount
Dpdb.py1140 n = co.co_argcount + co.co_kwonlyargcount
Dtyping.py1351 pos_count = code.co_argcount
/third_party/python/Doc/library/
Dinspect.rst144 | code | co_argcount | number of arguments (not |
/third_party/python/Doc/reference/
Ddatamodel.rst924 single: co_argcount (code object attribute)
942 :attr:`co_argcount` is the total number of positional arguments
/third_party/python/Misc/
DNEWS5924 - bpo-37122: Make the *co_argcount* attribute of code objects represent the
5927 which arguments are positional only, and the difference (*co_argcount* -