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.h156 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/
Dcodeobject.c237 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()
Dtypeobject.c8862 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.c4634 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 …]
Dmarshal.c512 w_long(co->co_argcount, p); in w_complex_object()
/third_party/jinja2/
Ddebug.py125 code.co_argcount,
/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 CodeType(co.co_argcount,
Dtest_subprocess.py283 argcount = subprocess.Popen.__init__.__code__.co_argcount
/third_party/python/Lib/
Ddis.py159 lines.append("Argument count: %s" % co.co_argcount)
Dinspect.py1201 nargs = co.co_argcount
2297 pos_count = func_code.co_argcount
Dpdb.py1143 n = co.co_argcount + co.co_kwonlyargcount
Dtyping.py1733 pos_count = code.co_argcount
/third_party/python/Misc/NEWS.d/
D3.8.0b1.rst58 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/
Dinspect.rst146 | code | co_argcount | number of arguments (not |
/third_party/python/Doc/reference/
Ddatamodel.rst957 single: co_argcount (code object attribute)
975 :attr:`co_argcount` is the total number of positional arguments