Lines Matching defs:args
208 ndarray_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
305 PyObject *args, *offset;
330 args = PyTuple_New(2 + nmemb);
331 if (args == NULL) {
339 /* Loop invariant: args[j] are borrowed references or NULL. */
340 PyTuple_SET_ITEM(args, 0, obj);
342 PyTuple_SET_ITEM(args, j, NULL);
350 PyTuple_SET_ITEM(args, 1, offset);
355 PyTuple_SET_ITEM(args, 2, item);
361 PyTuple_SET_ITEM(args, 2+j, tmp);
371 tmp = PyObject_CallObject(pack_into, args);
379 Py_INCREF(obj); /* args[0] */
380 /* args[1]: offset is either NULL or should be dealloc'd */
382 tmp = PyTuple_GET_ITEM(args, i);
385 Py_DECREF(args);
397 PyObject *structobj = NULL, *pack_into = NULL, *args = NULL;
428 args = PyTuple_New(2+nmemb);
429 if (args == NULL)
432 PyTuple_SET_ITEM(args, 0, mview);
433 PyTuple_SET_ITEM(args, 1, zero);
437 PyTuple_SET_ITEM(args, 2, item);
443 PyTuple_SET_ITEM(args, 2+i, x);
452 x = PyObject_CallObject(pack_into, args);
461 Py_XINCREF(PyTuple_GET_ITEM(args, i));
462 Py_XDECREF(args);
1280 ndarray_init(PyObject *self, PyObject *args, PyObject *kwds)
1296 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OOnOii", kwlist,
1346 ndarray_push(PyObject *self, PyObject *args, PyObject *kwds)
1359 if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO|OnOi", kwlist,
1922 slice_indices(PyObject *self, PyObject *args)
1928 if (!PyArg_ParseTuple(args, "On", &key, &len)) {
2306 get_pointer(PyObject *self, PyObject *args)
2314 if (!PyArg_ParseTuple(args, "OO", &bufobj, &seq)) {
2391 get_contiguous(PyObject *self, PyObject *args)
2399 if (!PyArg_ParseTuple(args, "OOO", &obj, &buffertype, &order)) {
2428 py_buffer_to_contiguous(PyObject *self, PyObject *args)
2438 if (!PyArg_ParseTuple(args, "OOi", &obj, &order, &flags)) {
2503 cmp_contig(PyObject *self, PyObject *args)
2510 if (!PyArg_ParseTuple(args, "OO", &b1, &b2)) {
2567 is_contiguous(PyObject *self, PyObject *args)
2575 if (!PyArg_ParseTuple(args, "OO", &obj, &order)) {
2713 staticarray_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
2719 staticarray_init(PyObject *self, PyObject *args, PyObject *kwds)
2727 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O", kwlist, &legacy_mode))