Lines Matching defs:args
15 memoryview(PyTypeObject *type, PyObject *args, PyObject *kwargs)
22 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
25 fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 1, 0, argsbuf);
68 memoryview_cast(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
78 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 2, 0, argsbuf);
79 if (!args) {
82 if (!PyUnicode_Check(args[0])) {
83 _PyArg_BadArgument("cast", "argument 'format'", "str", args[0]);
86 if (PyUnicode_READY(args[0]) == -1) {
89 format = args[0];
93 shape = args[1];
156 memoryview_tobytes(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
165 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 1, 0, argsbuf);
166 if (!args) {
172 if (args[0] == Py_None) {
175 else if (PyUnicode_Check(args[0])) {
177 order = PyUnicode_AsUTF8AndSize(args[0], &order_length);
187 _PyArg_BadArgument("tobytes", "argument 'order'", "str or None", args[0]);
228 memoryview_hex(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
238 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
239 if (!args) {
245 if (args[0]) {
246 sep = args[0];
251 bytes_per_sep = _PyLong_AsInt(args[1]);