Home
last modified time | relevance | path

Searched refs:co_posonlyargcount (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h21 int co_posonlyargcount, int co_kwonlyargcount,
38 int co_posonlyargcount = self->co_posonlyargcount; in code_replace() local
81 co_posonlyargcount = _PyLong_AsInt(args[1]); in code_replace()
82 if (co_posonlyargcount == -1 && PyErr_Occurred()) { in code_replace()
251 …return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nloc… in code_replace()
/external/python/cpython3/Objects/
Dcodeobject.c230 co->co_posonlyargcount = posonlyargcount; in PyCode_NewWithPosOnlyArgs()
377 {"co_posonlyargcount", T_INT, OFF(co_posonlyargcount), READONLY},
639 int co_posonlyargcount, int co_kwonlyargcount, in code_replace_impl() argument
656 CHECK_INT_ARG(co_posonlyargcount); in code_replace_impl()
667 co_posonlyargcount, co_kwonlyargcount, co_nlocals, in code_replace_impl()
673 co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, in code_replace_impl()
849 eq = co->co_posonlyargcount == cp->co_posonlyargcount; in code_richcompare()
923 co->co_argcount ^ co->co_posonlyargcount ^ co->co_kwonlyargcount ^ in code_hash()
/external/python/cpython3/Include/cpython/
Dcode.h21 int co_posonlyargcount; /* #positional only arguments */ member
/external/python/cpython3/Lib/test/
Dtest_positional_only_arg.py104 self.assertEqual(3, f.__code__.co_posonlyargcount)
111 self.assertEqual(3, f.__code__.co_posonlyargcount)
Dtest_code.py217 co.co_posonlyargcount,
/external/tensorflow/tensorflow/python/platform/
Dbenchmark.py70 new_code = types.CodeType(arg_num, func_code.co_posonlyargcount,
/external/python/cpython3/Lib/
Ddis.py160 lines.append("Positional-only arguments: %s" % co.co_posonlyargcount)
Dinspect.py2172 posonly_count = func_code.co_posonlyargcount
/external/python/cpython3/Python/
Dceval.c4015 for(int k=0; k < co->co_posonlyargcount; k++){ in positional_only_passed_as_keyword()
4163 for (j = co->co_posonlyargcount; j < total_args; j++) { in _PyEval_EvalCode()
4171 for (j = co->co_posonlyargcount; j < total_args; j++) { in _PyEval_EvalCode()
4185 if (co->co_posonlyargcount in _PyEval_EvalCode()
Dmarshal.c513 w_long(co->co_posonlyargcount, p); in w_complex_object()
/external/python/cpython3/Misc/NEWS.d/
D3.8.0b1.rst60 *co_posonlyargcount* can be used to distinguish which arguments are
61 positional only, and the difference (*co_argcount* - *co_posonlyargcount*)
/external/python/cpython3/Doc/library/
Dinspect.rst178 | | co_posonlyargcount| number of positional only |
/external/python/cpython3/Doc/reference/
Ddatamodel.rst926 single: co_posonlyargcount (code object attribute)
945 :attr:`co_posonlyargcount` is the number of positional-only arguments
/external/python/cpython3/Doc/whatsnew/
D3.8.rst470 >>> mean.__code__ = mean.__code__.replace(co_posonlyargcount=1)