Home
last modified time | relevance | path

Searched refs:fastargs (Results 1 – 25 of 31) sorted by relevance

12

/third_party/python/Modules/_blake2/clinic/
Dblake2b_impl.c.h28 PyObject * const *fastargs; in py_blake2b_new() local
45fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in py_blake2b_new()
46 if (!fastargs) { in py_blake2b_new()
53 data = fastargs[0]; in py_blake2b_new()
58 if (fastargs[1]) { in py_blake2b_new()
59 digest_size = _PyLong_AsInt(fastargs[1]); in py_blake2b_new()
67 if (fastargs[2]) { in py_blake2b_new()
68 if (PyObject_GetBuffer(fastargs[2], &key, PyBUF_SIMPLE) != 0) { in py_blake2b_new()
72 _PyArg_BadArgument("blake2b", "argument 'key'", "contiguous buffer", fastargs[2]); in py_blake2b_new()
79 if (fastargs[3]) { in py_blake2b_new()
[all …]
Dblake2s_impl.c.h28 PyObject * const *fastargs; in py_blake2s_new() local
45fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in py_blake2s_new()
46 if (!fastargs) { in py_blake2s_new()
53 data = fastargs[0]; in py_blake2s_new()
58 if (fastargs[1]) { in py_blake2s_new()
59 digest_size = _PyLong_AsInt(fastargs[1]); in py_blake2s_new()
67 if (fastargs[2]) { in py_blake2s_new()
68 if (PyObject_GetBuffer(fastargs[2], &key, PyBUF_SIMPLE) != 0) { in py_blake2s_new()
72 _PyArg_BadArgument("blake2s", "argument 'key'", "contiguous buffer", fastargs[2]); in py_blake2s_new()
79 if (fastargs[3]) { in py_blake2s_new()
[all …]
/third_party/python/Objects/clinic/
Dfuncobject.c.h33 PyObject * const *fastargs; in func_new() local
42fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 5… in func_new()
43 if (!fastargs) { in func_new()
46 if (!PyObject_TypeCheck(fastargs[0], &PyCode_Type)) { in func_new()
47 _PyArg_BadArgument("function", "argument 'code'", (&PyCode_Type)->tp_name, fastargs[0]); in func_new()
50 code = (PyCodeObject *)fastargs[0]; in func_new()
51 if (!PyDict_Check(fastargs[1])) { in func_new()
52 _PyArg_BadArgument("function", "argument 'globals'", "dict", fastargs[1]); in func_new()
55 globals = fastargs[1]; in func_new()
59 if (fastargs[2]) { in func_new()
[all …]
Ddescrobject.c.h15 PyObject * const *fastargs; in mappingproxy_new() local
19fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 1… in mappingproxy_new()
20 if (!fastargs) { in mappingproxy_new()
23 mapping = fastargs[0]; in mappingproxy_new()
78 PyObject * const *fastargs; in property_init() local
86fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 4… in property_init()
87 if (!fastargs) { in property_init()
93 if (fastargs[0]) { in property_init()
94 fget = fastargs[0]; in property_init()
99 if (fastargs[1]) { in property_init()
[all …]
Dmoduleobject.c.h23 PyObject * const *fastargs; in module___init__() local
29fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in module___init__()
30 if (!fastargs) { in module___init__()
33 if (!PyUnicode_Check(fastargs[0])) { in module___init__()
34 _PyArg_BadArgument("module", "argument 'name'", "str", fastargs[0]); in module___init__()
37 if (PyUnicode_READY(fastargs[0]) == -1) { in module___init__()
40 name = fastargs[0]; in module___init__()
44 doc = fastargs[1]; in module___init__()
Dstructseq.c.h15 PyObject * const *fastargs; in structseq_new() local
21fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in structseq_new()
22 if (!fastargs) { in structseq_new()
25 arg = fastargs[0]; in structseq_new()
29 dict = fastargs[1]; in structseq_new()
Dcomplexobject.c.h90 PyObject * const *fastargs; in complex_new() local
96fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in complex_new()
97 if (!fastargs) { in complex_new()
103 if (fastargs[0]) { in complex_new()
104 r = fastargs[0]; in complex_new()
109 i = fastargs[1]; in complex_new()
Denumobject.c.h30 PyObject * const *fastargs; in enum_new() local
36fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in enum_new()
37 if (!fastargs) { in enum_new()
40 iterable = fastargs[0]; in enum_new()
44 start = fastargs[1]; in enum_new()
Dbytesobject.c.h824 PyObject * const *fastargs; in bytes_new() local
831fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 3… in bytes_new()
832 if (!fastargs) { in bytes_new()
838 if (fastargs[0]) { in bytes_new()
839 x = fastargs[0]; in bytes_new()
844 if (fastargs[1]) { in bytes_new()
845 if (!PyUnicode_Check(fastargs[1])) { in bytes_new()
846 _PyArg_BadArgument("bytes", "argument 'encoding'", "str", fastargs[1]); in bytes_new()
850 encoding = PyUnicode_AsUTF8AndSize(fastargs[1], &encoding_length); in bytes_new()
862 if (!PyUnicode_Check(fastargs[2])) { in bytes_new()
[all …]
Dbytearrayobject.c.h16 PyObject * const *fastargs; in bytearray___init__() local
23fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 3… in bytearray___init__()
24 if (!fastargs) { in bytearray___init__()
30 if (fastargs[0]) { in bytearray___init__()
31 arg = fastargs[0]; in bytearray___init__()
36 if (fastargs[1]) { in bytearray___init__()
37 if (!PyUnicode_Check(fastargs[1])) { in bytearray___init__()
38 _PyArg_BadArgument("bytearray", "argument 'encoding'", "str", fastargs[1]); in bytearray___init__()
42 encoding = PyUnicode_AsUTF8AndSize(fastargs[1], &encoding_length); in bytearray___init__()
54 if (!PyUnicode_Check(fastargs[2])) { in bytearray___init__()
[all …]
Dlongobject.c.h15 PyObject * const *fastargs; in long_new() local
21fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in long_new()
22 if (!fastargs) { in long_new()
29 x = fastargs[0]; in long_new()
34 obase = fastargs[1]; in long_new()
/third_party/python/Modules/clinic/
Ditertoolsmodule.c.h59 PyObject * const *fastargs; in itertools_groupby() local
65fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in itertools_groupby()
66 if (!fastargs) { in itertools_groupby()
69 it = fastargs[0]; in itertools_groupby()
73 keyfunc = fastargs[1]; in itertools_groupby()
375 PyObject * const *fastargs; in itertools_combinations() local
380fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 2… in itertools_combinations()
381 if (!fastargs) { in itertools_combinations()
384 iterable = fastargs[0]; in itertools_combinations()
387 PyObject *iobj = _PyNumber_Index(fastargs[1]); in itertools_combinations()
[all …]
D_pickle.c.h112 PyObject * const *fastargs; in _pickle_Pickler___init__() local
120fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 4… in _pickle_Pickler___init__()
121 if (!fastargs) { in _pickle_Pickler___init__()
124 file = fastargs[0]; in _pickle_Pickler___init__()
128 if (fastargs[1]) { in _pickle_Pickler___init__()
129 protocol = fastargs[1]; in _pickle_Pickler___init__()
134 if (fastargs[2]) { in _pickle_Pickler___init__()
135 fix_imports = PyObject_IsTrue(fastargs[2]); in _pickle_Pickler___init__()
143 buffer_callback = fastargs[3]; in _pickle_Pickler___init__()
332 PyObject * const *fastargs; in _pickle_Unpickler___init__() local
[all …]
D_datetimemodule.c.h28 PyObject * const *fastargs; in iso_calendar_date_new() local
34fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 3, 3… in iso_calendar_date_new()
35 if (!fastargs) { in iso_calendar_date_new()
38 year = _PyLong_AsInt(fastargs[0]); in iso_calendar_date_new()
42 week = _PyLong_AsInt(fastargs[1]); in iso_calendar_date_new()
46 weekday = _PyLong_AsInt(fastargs[2]); in iso_calendar_date_new()
D_elementtree.c.h596 PyObject * const *fastargs; in _elementtree_TreeBuilder___init__() local
605fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in _elementtree_TreeBuilder___init__()
606 if (!fastargs) { in _elementtree_TreeBuilder___init__()
612 if (fastargs[0]) { in _elementtree_TreeBuilder___init__()
613 element_factory = fastargs[0]; in _elementtree_TreeBuilder___init__()
622 if (fastargs[1]) { in _elementtree_TreeBuilder___init__()
623 comment_factory = fastargs[1]; in _elementtree_TreeBuilder___init__()
628 if (fastargs[2]) { in _elementtree_TreeBuilder___init__()
629 pi_factory = fastargs[2]; in _elementtree_TreeBuilder___init__()
634 if (fastargs[3]) { in _elementtree_TreeBuilder___init__()
[all …]
D_lzmamodule.c.h177 PyObject * const *fastargs; in _lzma_LZMADecompressor___init__() local
184fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 3… in _lzma_LZMADecompressor___init__()
185 if (!fastargs) { in _lzma_LZMADecompressor___init__()
191 if (fastargs[0]) { in _lzma_LZMADecompressor___init__()
192 format = _PyLong_AsInt(fastargs[0]); in _lzma_LZMADecompressor___init__()
200 if (fastargs[1]) { in _lzma_LZMADecompressor___init__()
201 memlimit = fastargs[1]; in _lzma_LZMADecompressor___init__()
206 filters = fastargs[2]; in _lzma_LZMADecompressor___init__()
D_asynciomodule.c.h32 PyObject * const *fastargs; in _asyncio_Future___init__() local
37fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 0… in _asyncio_Future___init__()
38 if (!fastargs) { in _asyncio_Future___init__()
44 loop = fastargs[0]; in _asyncio_Future___init__()
329 PyObject * const *fastargs; in _asyncio_Task___init__() local
336fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 1… in _asyncio_Task___init__()
337 if (!fastargs) { in _asyncio_Task___init__()
340 coro = fastargs[0]; in _asyncio_Task___init__()
344 if (fastargs[1]) { in _asyncio_Task___init__()
345 loop = fastargs[1]; in _asyncio_Task___init__()
[all …]
/third_party/python/Python/clinic/
Dtraceback.c.h22 PyObject * const *fastargs; in tb_new() local
29fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 4, 4… in tb_new()
30 if (!fastargs) { in tb_new()
33 tb_next = fastargs[0]; in tb_new()
34 if (!PyObject_TypeCheck(fastargs[1], &PyFrame_Type)) { in tb_new()
35 … _PyArg_BadArgument("TracebackType", "argument 'tb_frame'", (&PyFrame_Type)->tp_name, fastargs[1]); in tb_new()
38 tb_frame = (PyFrameObject *)fastargs[1]; in tb_new()
39 tb_lasti = _PyLong_AsInt(fastargs[2]); in tb_new()
43 tb_lineno = _PyLong_AsInt(fastargs[3]); in tb_new()
/third_party/python/Modules/_io/clinic/
Dtextio.c.h30 PyObject * const *fastargs; in _io_IncrementalNewlineDecoder___init__() local
37fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 3… in _io_IncrementalNewlineDecoder___init__()
38 if (!fastargs) { in _io_IncrementalNewlineDecoder___init__()
41 decoder = fastargs[0]; in _io_IncrementalNewlineDecoder___init__()
42 translate = _PyLong_AsInt(fastargs[1]); in _io_IncrementalNewlineDecoder___init__()
49 errors = fastargs[2]; in _io_IncrementalNewlineDecoder___init__()
188 PyObject * const *fastargs; in _io_TextIOWrapper___init__() local
198fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 6… in _io_TextIOWrapper___init__()
199 if (!fastargs) { in _io_TextIOWrapper___init__()
202 buffer = fastargs[0]; in _io_TextIOWrapper___init__()
[all …]
Dwinconsoleio.c.h54 PyObject * const *fastargs; in _io__WindowsConsoleIO___init__() local
62fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 4… in _io__WindowsConsoleIO___init__()
63 if (!fastargs) { in _io__WindowsConsoleIO___init__()
66 nameobj = fastargs[0]; in _io__WindowsConsoleIO___init__()
70 if (fastargs[1]) { in _io__WindowsConsoleIO___init__()
71 if (!PyUnicode_Check(fastargs[1])) { in _io__WindowsConsoleIO___init__()
72 _PyArg_BadArgument("_WindowsConsoleIO", "argument 'mode'", "str", fastargs[1]); in _io__WindowsConsoleIO___init__()
76 mode = PyUnicode_AsUTF8AndSize(fastargs[1], &mode_length); in _io__WindowsConsoleIO___init__()
88 if (fastargs[2]) { in _io__WindowsConsoleIO___init__()
89 closefd = _PyLong_AsInt(fastargs[2]); in _io__WindowsConsoleIO___init__()
[all …]
Dfileio.c.h55 PyObject * const *fastargs; in _io_FileIO___init__() local
63fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 4… in _io_FileIO___init__()
64 if (!fastargs) { in _io_FileIO___init__()
67 nameobj = fastargs[0]; in _io_FileIO___init__()
71 if (fastargs[1]) { in _io_FileIO___init__()
72 if (!PyUnicode_Check(fastargs[1])) { in _io_FileIO___init__()
73 _PyArg_BadArgument("FileIO", "argument 'mode'", "str", fastargs[1]); in _io_FileIO___init__()
77 mode = PyUnicode_AsUTF8AndSize(fastargs[1], &mode_length); in _io_FileIO___init__()
89 if (fastargs[2]) { in _io_FileIO___init__()
90 closefd = _PyLong_AsInt(fastargs[2]); in _io_FileIO___init__()
[all …]
Dbufferedio.c.h408 PyObject * const *fastargs; in _io_BufferedReader___init__() local
414fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in _io_BufferedReader___init__()
415 if (!fastargs) { in _io_BufferedReader___init__()
418 raw = fastargs[0]; in _io_BufferedReader___init__()
424 PyObject *iobj = _PyNumber_Index(fastargs[1]); in _io_BufferedReader___init__()
462 PyObject * const *fastargs; in _io_BufferedWriter___init__() local
468fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in _io_BufferedWriter___init__()
469 if (!fastargs) { in _io_BufferedWriter___init__()
472 raw = fastargs[0]; in _io_BufferedWriter___init__()
478 PyObject *iobj = _PyNumber_Index(fastargs[1]); in _io_BufferedWriter___init__()
[all …]
Dstringio.c.h261 PyObject * const *fastargs; in _io_StringIO___init__() local
267fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in _io_StringIO___init__()
268 if (!fastargs) { in _io_StringIO___init__()
274 if (fastargs[0]) { in _io_StringIO___init__()
275 value = fastargs[0]; in _io_StringIO___init__()
280 newline_obj = fastargs[1]; in _io_StringIO___init__()
/third_party/python/Modules/_multiprocessing/clinic/
Dsemaphore.c.h164 PyObject * const *fastargs; in _multiprocessing_SemLock() local
172fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 5, 5… in _multiprocessing_SemLock()
173 if (!fastargs) { in _multiprocessing_SemLock()
176 kind = _PyLong_AsInt(fastargs[0]); in _multiprocessing_SemLock()
180 value = _PyLong_AsInt(fastargs[1]); in _multiprocessing_SemLock()
184 maxvalue = _PyLong_AsInt(fastargs[2]); in _multiprocessing_SemLock()
188 if (!PyUnicode_Check(fastargs[3])) { in _multiprocessing_SemLock()
189 _PyArg_BadArgument("SemLock", "argument 'name'", "str", fastargs[3]); in _multiprocessing_SemLock()
193 name = PyUnicode_AsUTF8AndSize(fastargs[3], &name_length); in _multiprocessing_SemLock()
201 unlink = _PyLong_AsInt(fastargs[4]); in _multiprocessing_SemLock()
/third_party/python/Modules/_sha3/clinic/
Dsha3module.c.h21 PyObject * const *fastargs; in py_sha3_new() local
27fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in py_sha3_new()
28 if (!fastargs) { in py_sha3_new()
35 data = fastargs[0]; in py_sha3_new()
40 usedforsecurity = PyObject_IsTrue(fastargs[1]); in py_sha3_new()

12