Home
last modified time | relevance | path

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

12

/external/python/cpython2/Objects/
Dcodeobject.c122 co->co_argcount = argcount; in PyCode_New()
201 {"co_argcount", T_INT, OFF(co_argcount), READONLY},
389 cmp = co->co_argcount - cp->co_argcount; in code_compare()
574 eq = co->co_argcount == cp->co_argcount; in code_richcompare()
646 co->co_argcount ^ co->co_nlocals ^ co->co_flags; in code_hash()
/external/python/cpython3/Objects/
Dcodeobject.c193 co->co_argcount = argcount; in PyCode_New()
275 {"co_argcount", T_INT, OFF(co_argcount), READONLY},
640 eq = co->co_argcount == cp->co_argcount; in code_richcompare()
714 co->co_argcount ^ co->co_kwonlyargcount ^ in code_hash()
Dcall.c321 if (argdefs == NULL && co->co_argcount == nargs) { in _PyFunction_FastCallDict()
325 && co->co_argcount == PyTuple_GET_SIZE(argdefs)) { in _PyFunction_FastCallDict()
407 if (argdefs == NULL && co->co_argcount == nargs) { in _PyFunction_FastCallKeywords()
411 && co->co_argcount == PyTuple_GET_SIZE(argdefs)) { in _PyFunction_FastCallKeywords()
/external/python/cpython2/Include/
Dcode.h12 int co_argcount; /* #arguments, except *args */ member
/external/python/cpython3/Include/
Dcode.h23 int co_argcount; /* #arguments, except *args */ member
/external/python/cpython3/Python/
Dceval.c3581 end = co->co_argcount - defcount; in missing_arguments()
3584 start = co->co_argcount; in missing_arguments()
3611 Py_ssize_t co_argcount = co->co_argcount; in too_many_positional() local
3615 for (i = co_argcount; i < co_argcount + co->co_kwonlyargcount; i++) { in too_many_positional()
3621 Py_ssize_t atleast = co_argcount - defcount; in too_many_positional()
3623 sig = PyUnicode_FromFormat("from %zd to %zd", atleast, co_argcount); in too_many_positional()
3626 plural = (co_argcount != 1); in too_many_positional()
3627 sig = PyUnicode_FromFormat("%zd", co_argcount); in too_many_positional()
3678 const Py_ssize_t total_args = co->co_argcount + co->co_kwonlyargcount; in _PyEval_EvalCodeWithName()
3714 if (argcount > co->co_argcount) { in _PyEval_EvalCodeWithName()
[all …]
/external/tensorflow/tensorflow/contrib/framework/python/ops/
Darg_scope.py102 return func.__code__.co_varnames[-kwargs_length:func.__code__.co_argcount]
/external/python/cpython2/Python/
Dceval.c3392 if (co->co_argcount > 0 || in PyEval_EvalCodeEx()
3401 i = co->co_argcount; in PyEval_EvalCodeEx()
3406 if (argcount > co->co_argcount) { in PyEval_EvalCodeEx()
3413 co->co_argcount, in PyEval_EvalCodeEx()
3414 co->co_argcount == 1 ? "" : "s", in PyEval_EvalCodeEx()
3418 n = co->co_argcount; in PyEval_EvalCodeEx()
3429 SETLOCAL(co->co_argcount, u); in PyEval_EvalCodeEx()
3454 for (j = 0; j < co->co_argcount; j++) { in PyEval_EvalCodeEx()
3460 for (j = 0; j < co->co_argcount; j++) { in PyEval_EvalCodeEx()
3500 if (argcount < co->co_argcount) { in PyEval_EvalCodeEx()
[all …]
/external/python/cpython2/Tools/framer/framer/
Dfunction.py103 args = code.co_varnames[:code.co_argcount]
/external/python/cpython2/Lib/idlelib/
DCallTips.py180 argcount = fob.func_code.co_argcount
/external/python/cpython2/Lib/test/
Dtest_new.py111 argcount = c.co_argcount
Dtest_import.py505 code = type(code)(code.co_argcount, code.co_nlocals, code.co_stacksize,
/external/python/cpython3/Lib/
Dtypes.py259 co.co_argcount, co.co_kwonlyargcount, co.co_nlocals,
Ddis.py150 lines.append("Argument count: %s" % co.co_argcount)
Dmodulefinder.py562 return types.CodeType(co.co_argcount, co.co_kwonlyargcount,
/external/autotest/client/common_lib/
Dtest.py673 return func.func_code.co_varnames[:func.func_code.co_argcount]
738 all_varnames += func.func_code.co_varnames[:func.func_code.co_argcount]
/external/python/cpython3/Lib/test/
Dtest_code.py160 c.co_argcount, c.co_kwonlyargcount, c.co_nlocals,
/external/libchrome/third_party/ply/
Dyacc.py2884 if (func_code(self.error_func).co_argcount != 1+ismethod):
2988 if func_code(func).co_argcount > reqargs:
2991 elif func_code(func).co_argcount < reqargs:
3018 if ((isinstance(v,types.FunctionType) and func_code(v).co_argcount == 1) or
3019 (isinstance(v,types.MethodType) and func_code(v).co_argcount == 2)):
Dlex.py739 nargs = func_code(f).co_argcount
808 nargs = func_code(f).co_argcount
/external/ply/ply/ply/
Dyacc.py3054 argcount = self.error_func.__code__.co_argcount - ismethod
3165 if func.__code__.co_argcount > reqargs:
3168 elif func.__code__.co_argcount < reqargs:
3197 if ((isinstance(v, types.FunctionType) and v.__code__.co_argcount == 1) or
3198 (isinstance(v, types.MethodType) and v.__func__.__code__.co_argcount == 2)):
Dlex.py743 nargs = f.__code__.co_argcount
811 nargs = f.__code__.co_argcount
/external/selinux/python/sepolgen/src/sepolgen/
Dyacc.py3054 argcount = self.error_func.__code__.co_argcount - ismethod
3165 if func.__code__.co_argcount > reqargs:
3168 elif func.__code__.co_argcount < reqargs:
3197 if ((isinstance(v, types.FunctionType) and v.__code__.co_argcount == 1) or
3198 (isinstance(v, types.MethodType) and v.__func__.__code__.co_argcount == 2)):
Dlex.py743 nargs = f.__code__.co_argcount
811 nargs = f.__code__.co_argcount
/external/python/funcsigs/funcsigs/
D__init__.py523 pos_count = func_code.co_argcount
/external/python/cpython2/Lib/
Dmodulefinder.py609 return types.CodeType(co.co_argcount, co.co_nlocals, co.co_stacksize,

12