Home
last modified time | relevance | path

Searched refs:co_argcount (Results 1 - 16 of 16) sorted by relevance

/third_party/python/Objects/clinic/
H A Dcodeobject.c.h160 "replace($self, /, *, co_argcount=-1, co_posonlyargcount=-1,\n"
174 code_replace_impl(PyCodeObject *self, int co_argcount,
189 static const char * const _keywords[] = {"co_argcount", "co_posonlyargcount", "co_kwonlyargcount", "co_nlocals", "co_stacksize", "co_flags", "co_firstlineno", "co_code", "co_consts", "co_names", "co_varnames", "co_freevars", "co_cellvars", "co_filename", "co_name", "co_qualname", "co_linetable", "co_exceptiontable", NULL}; in code_replace()
193 int co_argcount = self->co_argcount; in code_replace() local
220 co_argcount = _PyLong_AsInt(args[0]); in code_replace()
221 if (co_argcount == -1 && PyErr_Occurred()) { in code_replace()
397 return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_qualname, co_linetable, co_exceptiontable); in code_replace()
/third_party/python/Objects/
H A Dcodeobject.c318 co->co_argcount = con->argcount; in init_code()
1685 eq = co->co_argcount == cp->co_argcount; in code_richcompare()
1780 co->co_argcount ^ co->co_posonlyargcount ^ co->co_kwonlyargcount ^ in code_hash()
1790 {"co_argcount", T_INT, OFF(co_argcount), READONLY},
1881 co_argcount: int(c_default="self->co_argcount") = -1
1904 code_replace_impl(PyCodeObject *self, int co_argcount, in code_replace_impl() argument
1923 CHECK_INT_ARG(co_argcount); in code_replace_impl()
[all...]
H A Dtypeobject.c8989 if (co->co_argcount == 0) { in super_init_without_args()
/third_party/python/Include/cpython/
H A Dcode.h42 * - co_argcount \
69 int co_argcount; /* #arguments, except *args */ \
/third_party/jinja2/
H A Ddebug.py125 code.co_argcount,
/third_party/python/Lib/test/
H A 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"
H A Dtest_code.py224 CodeType(co.co_argcount,
263 ("co_argcount", 0),
300 CodeType(co.co_argcount,
H A Dtest_subprocess.py301 argcount = subprocess.Popen.__init__.__code__.co_argcount
/third_party/python/Python/
H A Dceval.c2250 assert(code->co_argcount == 2);
4852 DEOPT_IF(code->co_argcount != argcount, CALL);
4886 DEOPT_IF(argcount > code->co_argcount, CALL);
4899 for (int i = argcount; i < code->co_argcount; i++) {
4905 for (int i = code->co_argcount; i < code->co_nlocalsplus; i++) {
5924 end = co->co_argcount - defcount;
5927 start = co->co_argcount;
5955 Py_ssize_t co_argcount = co->co_argcount; local
5959 for (i = co_argcount;
[all...]
H A Dspecialize.c1230 if (fcode->co_argcount != 2) { in _Py_Specialize_BinarySubscr()
1501 int argcount = code->co_argcount; in specialize_py_call()
H A Dmarshal.c559 w_long(co->co_argcount, p); in w_complex_object()
/third_party/python/Tools/scripts/
H A Dumarshal.py277 retval.co_argcount = self.r_long()
/third_party/python/Lib/
H A Ddis.py198 lines.append("Argument count: %s" % co.co_argcount)
H A Dinspect.py484 co_argcount number of arguments (not including *, ** args
1316 nargs = co.co_argcount
2354 pos_count = func_code.co_argcount
H A Dpdb.py1218 n = co.co_argcount + co.co_kwonlyargcount
/third_party/python/Lib/unittest/
H A Dmock.py2215 code_mock.co_argcount = 0

Completed in 47 milliseconds