Home
last modified time | relevance | path

Searched refs:newargs (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Objects/
Dclassobject.c49 PyObject **newargs = (PyObject**)args - 1; in method_vectorcall() local
51 PyObject *tmp = newargs[0]; in method_vectorcall()
52 newargs[0] = self; in method_vectorcall()
53 result = _PyObject_VectorcallTstate(tstate, func, newargs, in method_vectorcall()
55 newargs[0] = tmp; in method_vectorcall()
65 PyObject **newargs; in method_vectorcall() local
67 newargs = newargs_stack; in method_vectorcall()
70 newargs = PyMem_Malloc((totalargs+1) * sizeof(PyObject *)); in method_vectorcall()
71 if (newargs == NULL) { in method_vectorcall()
77 newargs[0] = self; in method_vectorcall()
[all …]
Dgenericaliasobject.c329 PyObject *newargs = PyTuple_New(nargs); in ga_getitem() local
330 if (newargs == NULL) { in ga_getitem()
337 Py_DECREF(newargs); in ga_getitem()
349 Py_DECREF(newargs); in ga_getitem()
353 PyTuple_SET_ITEM(newargs, iarg, arg); in ga_getitem()
356 PyObject *res = Py_GenericAlias(alias->origin, newargs); in ga_getitem()
358 Py_DECREF(newargs); in ga_getitem()
Dcall.c122 PyObject *const *newargs; in _PyObject_FastCallDictTstate() local
123 newargs = _PyStack_UnpackDict(tstate, in _PyObject_FastCallDictTstate()
126 if (newargs == NULL) { in _PyObject_FastCallDictTstate()
129 res = func(callable, newargs, in _PyObject_FastCallDictTstate()
131 _PyStack_UnpackDict_Free(newargs, nargs, kwnames); in _PyObject_FastCallDictTstate()
Ddescrobject.c1077 PyObject *newargs[3]; in mappingproxy_get() local
1078 newargs[0] = pp->mapping; in mappingproxy_get()
1079 newargs[2] = Py_None; in mappingproxy_get()
1082 &newargs[1], &newargs[2])) in mappingproxy_get()
1087 return _PyObject_VectorcallMethodId(&PyId_get, newargs, in mappingproxy_get()
Dtypeobject.c4461 PyObject *newargs = _PyObject_CallNoArg(getnewargs_ex); in _PyObject_GetNewArguments() local
4463 if (newargs == NULL) { in _PyObject_GetNewArguments()
4466 if (!PyTuple_Check(newargs)) { in _PyObject_GetNewArguments()
4469 "not '%.200s'", Py_TYPE(newargs)->tp_name); in _PyObject_GetNewArguments()
4470 Py_DECREF(newargs); in _PyObject_GetNewArguments()
4473 if (PyTuple_GET_SIZE(newargs) != 2) { in _PyObject_GetNewArguments()
4476 "length 2, not %zd", PyTuple_GET_SIZE(newargs)); in _PyObject_GetNewArguments()
4477 Py_DECREF(newargs); in _PyObject_GetNewArguments()
4480 *args = PyTuple_GET_ITEM(newargs, 0); in _PyObject_GetNewArguments()
4482 *kwargs = PyTuple_GET_ITEM(newargs, 1); in _PyObject_GetNewArguments()
[all …]
Dexceptions.c841 PyObject *newargs; in oserror_parse_args() local
858 newargs = PyTuple_New(nargs); in oserror_parse_args()
859 if (!newargs) in oserror_parse_args()
861 PyTuple_SET_ITEM(newargs, 0, *myerrno); in oserror_parse_args()
865 PyTuple_SET_ITEM(newargs, i, val); in oserror_parse_args()
868 args = *p_args = newargs; in oserror_parse_args()
/external/python/setuptools/
Dlauncher.c255 char **newargs, **newargsp, **parsedargs; /* argument array for exec */ in run() local
302 newargs = (char **)calloc(parsedargc + argc + 1, sizeof(char *)); in run()
303 newargsp = newargs; in run()
317 execv(ptr, (const char * const *)(newargs)); in run()
324 cmdline = join_executable_and_args(ptr, newargs, parsedargc + argc); in run()
/external/python/cpython2/Modules/
D_struct.c1876 PyObject *s_object, *fmt, *newargs, *result; in pack() local
1884 newargs = PyTuple_GetSlice(args, 1, n); in pack()
1885 if (newargs == NULL) in pack()
1890 Py_DECREF(newargs); in pack()
1893 result = s_pack(s_object, newargs); in pack()
1894 Py_DECREF(newargs); in pack()
1906 PyObject *s_object, *fmt, *newargs, *result; in pack_into() local
1914 newargs = PyTuple_GetSlice(args, 1, n); in pack_into()
1915 if (newargs == NULL) in pack_into()
1920 Py_DECREF(newargs); in pack_into()
[all …]
D_collectionsmodule.c1658 PyObject *newargs; in defdict_init() local
1661 newargs = PyTuple_New(0); in defdict_init()
1672 newargs = PySequence_GetSlice(args, 1, n); in defdict_init()
1674 if (newargs == NULL) in defdict_init()
1678 result = PyDict_Type.tp_init(self, newargs, kwds); in defdict_init()
1679 Py_DECREF(newargs); in defdict_init()
Dparsermodule.c3404 PyObject *newargs; in parser__pickler() local
3409 if ((newargs = Py_BuildValue("Oi", st, 1)) == NULL) in parser__pickler()
3411 tuple = parser_st2tuple((PyST_Object*)NULL, newargs, empty_dict); in parser__pickler()
3416 Py_DECREF(newargs); in parser__pickler()
Ditertoolsmodule.c1381 PyObject *newargs = PySequence_Tuple(args); in starmap_next() local
1383 if (newargs == NULL) in starmap_next()
1385 args = newargs; in starmap_next()
/external/toybox/toys/posix/
Dfind.c97 char **newargs; in flush_exec() local
119 newargs = xmalloc(sizeof(char *)*(aa->arglen+bb->namecount+1)); in flush_exec()
121 memcpy(newargs, aa->argstart, sizeof(char *)*aa->arglen); in flush_exec()
122 newargs[aa->arglen] = 0; in flush_exec()
128 memcpy(newargs, aa->argstart, sizeof(char *)*pos); in flush_exec()
129 for (dl = bb->names; dl; dl = dl->next) newargs[pos++] = dl->data; in flush_exec()
131 memcpy(newargs+pos, aa->argstart+aa->curly+1, sizeof(char *)*rest); in flush_exec()
132 newargs[pos+rest] = 0; in flush_exec()
135 rc = xrun(newargs); in flush_exec()
/external/python/cpython3/Modules/
D_operator.c1654 PyObject *newargs; in methodcaller_reduce() local
1658 newargs = PyTuple_New(1 + callargcount); in methodcaller_reduce()
1659 if (newargs == NULL) in methodcaller_reduce()
1662 PyTuple_SET_ITEM(newargs, 0, mc->name); in methodcaller_reduce()
1666 PyTuple_SET_ITEM(newargs, i + 1, arg); in methodcaller_reduce()
1668 return Py_BuildValue("ON", Py_TYPE(mc), newargs); in methodcaller_reduce()
1674 PyObject *newargs[2]; in methodcaller_reduce() local
1685 newargs[0] = (PyObject *)Py_TYPE(mc); in methodcaller_reduce()
1686 newargs[1] = mc->name; in methodcaller_reduce()
1687 constructor = PyObject_VectorcallDict(partial, newargs, 2, mc->kwds); in methodcaller_reduce()
Dparsermodule.c1085 PyObject *newargs; in parser__pickler() local
1088 if ((newargs = PyTuple_Pack(2, st, Py_True)) == NULL) in parser__pickler()
1090 tuple = parser_st2tuple((PyST_Object*)NULL, newargs, NULL); in parser__pickler()
1095 Py_DECREF(newargs); in parser__pickler()
D_functoolsmodule.c173 PyObject **newargs = (PyObject **)args - 1; in partial_vectorcall() local
174 PyObject *tmp = newargs[0]; in partial_vectorcall()
175 newargs[0] = pto_args[0]; in partial_vectorcall()
177 newargs, nargs + 1, kwnames); in partial_vectorcall()
178 newargs[0] = tmp; in partial_vectorcall()
D_collectionsmodule.c2189 PyObject *newargs; in defdict_init() local
2192 newargs = PyTuple_New(0); in defdict_init()
2203 newargs = PySequence_GetSlice(args, 1, n); in defdict_init()
2205 if (newargs == NULL) in defdict_init()
2209 result = PyDict_Type.tp_init(self, newargs, kwds); in defdict_init()
2210 Py_DECREF(newargs); in defdict_init()
D_pickle.c4072 PyObject *newargs; in save_reduce() local
4077 newargs = PyTuple_New(PyTuple_GET_SIZE(args) + 2); in save_reduce()
4078 if (newargs == NULL) in save_reduce()
4083 Py_DECREF(newargs); in save_reduce()
4086 PyTuple_SET_ITEM(newargs, 0, cls_new); in save_reduce()
4088 PyTuple_SET_ITEM(newargs, 1, cls); in save_reduce()
4092 PyTuple_SET_ITEM(newargs, i + 2, item); in save_reduce()
4095 callable = PyObject_Call(st->partial, newargs, kwargs); in save_reduce()
4096 Py_DECREF(newargs); in save_reduce()
4100 newargs = PyTuple_New(0); in save_reduce()
[all …]
Ditertoolsmodule.c1789 PyObject *newargs = PySequence_Tuple(args); in starmap_next() local
1791 if (newargs == NULL) in starmap_next()
1793 args = newargs; in starmap_next()
/external/python/cpython2/Lib/test/
Dtest_datetime.py1116 newargs = args[:]
1117 newargs[i] = newval
1118 expected = cls(*newargs)
1496 newargs = args[:]
1497 newargs[i] = args[i] + 1
1498 t2 = self.theclass(*newargs) # this is larger than t1
1666 newargs = args[:]
1667 newargs[i] = newval
1668 expected = cls(*newargs)
1779 newargs = args[:]
[all …]
/external/python/cpython3/Lib/test/
Ddatetimetester.py1688 newargs = args[:]
1689 newargs[i] = newval
1690 expected = cls(*newargs)
2347 newargs = args[:]
2348 newargs[i] = args[i] + 1
2349 t2 = self.theclass(*newargs) # this is larger than t1
2738 newargs = args[:]
2739 newargs[i] = newval
2740 expected = cls(*newargs)
3118 newargs = args[:]
[all …]
/external/marisa-trie/bindings/python/
Dmarisa-swig_wrap.cxx1335 PyObject *newargs; member
1369 data->newargs = obj; in SwigPyClientData_New()
1379 data->newargs = PyTuple_New(1); in SwigPyClientData_New()
1380 PyTuple_SetItem(data->newargs, 0, obj); in SwigPyClientData_New()
1382 data->newargs = obj; in SwigPyClientData_New()
1384 Py_INCREF(data->newargs); in SwigPyClientData_New()
1413 Py_XDECREF(data->newargs); in SwigPyClientData_Del()
2307 inst = PyObject_Call(newraw, data->newargs, NULL); in SWIG_Python_NewShadowInstance()
2326 inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); in SWIG_Python_NewShadowInstance()
2332 inst = PyInstance_NewRaw(data->newargs, dict); in SWIG_Python_NewShadowInstance()
[all …]
/external/python/cpython2/Python/
Dbltinmodule.c2230 PyObject *newlist, *v, *seq, *compare=NULL, *keyfunc=NULL, *newargs; in builtin_sorted() local
2250 newargs = PyTuple_GetSlice(args, 1, 4); in builtin_sorted()
2251 if (newargs == NULL) { in builtin_sorted()
2257 v = PyObject_Call(callable, newargs, kwds); in builtin_sorted()
2258 Py_DECREF(newargs); in builtin_sorted()
/external/python/cpython3/Lib/unittest/
Dmock.py1336 keywargs) as (newargs, newkeywargs):
1337 return func(*newargs, **newkeywargs)
1353 keywargs) as (newargs, newkeywargs):
1354 return await func(*newargs, **newkeywargs)
/external/python/cpython2/Objects/
Dtypeobject.c5889 PyObject *newargs, *x; local
5902 newargs = PyTuple_New(n+1);
5903 if (newargs == NULL)
5906 PyTuple_SET_ITEM(newargs, 0, (PyObject *)type);
5910 PyTuple_SET_ITEM(newargs, i+1, x);
5912 x = PyObject_Call(func, newargs, kwds);
5913 Py_DECREF(newargs);