Home
last modified time | relevance | path

Searched refs:fastargs (Results 1 – 25 of 26) 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 if (PyFloat_Check(fastargs[1])) { in py_blake2b_new()
64 digest_size = _PyLong_AsInt(fastargs[1]); in py_blake2b_new()
72 if (fastargs[2]) { in py_blake2b_new()
73 if (PyObject_GetBuffer(fastargs[2], &key, PyBUF_SIMPLE) != 0) { in py_blake2b_new()
77 _PyArg_BadArgument("blake2b", "argument 'key'", "contiguous buffer", fastargs[2]); 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 if (PyFloat_Check(fastargs[1])) { in py_blake2s_new()
64 digest_size = _PyLong_AsInt(fastargs[1]); in py_blake2s_new()
72 if (fastargs[2]) { in py_blake2s_new()
73 if (PyObject_GetBuffer(fastargs[2], &key, PyBUF_SIMPLE) != 0) { in py_blake2s_new()
77 _PyArg_BadArgument("blake2s", "argument 'key'", "contiguous buffer", fastargs[2]); 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__()
Dcomplexobject.c.h23 PyObject * const *fastargs; in complex_new() local
29fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in complex_new()
30 if (!fastargs) { in complex_new()
36 if (fastargs[0]) { in complex_new()
37 r = fastargs[0]; in complex_new()
42 i = fastargs[1]; in complex_new()
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()
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()
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/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 if (PyFloat_Check(fastargs[2])) { in tb_new()
44 tb_lasti = _PyLong_AsInt(fastargs[2]); in tb_new()
48 if (PyFloat_Check(fastargs[3])) { in tb_new()
[all …]
/third_party/python/Modules/clinic/
Ditertoolsmodule.c.h28 PyObject * const *fastargs; in itertools_groupby() local
34fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in itertools_groupby()
35 if (!fastargs) { in itertools_groupby()
38 it = fastargs[0]; in itertools_groupby()
42 keyfunc = fastargs[1]; in itertools_groupby()
349 PyObject * const *fastargs; in itertools_combinations() local
354fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 2… in itertools_combinations()
355 if (!fastargs) { in itertools_combinations()
358 iterable = fastargs[0]; in itertools_combinations()
359 if (PyFloat_Check(fastargs[1])) { in itertools_combinations()
[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 if (PyFloat_Check(fastargs[0])) { in iso_calendar_date_new()
43 year = _PyLong_AsInt(fastargs[0]); in iso_calendar_date_new()
47 if (PyFloat_Check(fastargs[1])) { in iso_calendar_date_new()
52 week = _PyLong_AsInt(fastargs[1]); in iso_calendar_date_new()
56 if (PyFloat_Check(fastargs[2])) { in iso_calendar_date_new()
61 weekday = _PyLong_AsInt(fastargs[2]); in iso_calendar_date_new()
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_lzmamodule.c.h182 PyObject * const *fastargs; in _lzma_LZMADecompressor___init__() local
189fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 3… in _lzma_LZMADecompressor___init__()
190 if (!fastargs) { in _lzma_LZMADecompressor___init__()
196 if (fastargs[0]) { in _lzma_LZMADecompressor___init__()
197 if (PyFloat_Check(fastargs[0])) { in _lzma_LZMADecompressor___init__()
202 format = _PyLong_AsInt(fastargs[0]); in _lzma_LZMADecompressor___init__()
210 if (fastargs[1]) { in _lzma_LZMADecompressor___init__()
211 memlimit = fastargs[1]; in _lzma_LZMADecompressor___init__()
216 filters = fastargs[2]; in _lzma_LZMADecompressor___init__()
D_elementtree.c.h601 PyObject * const *fastargs; in _elementtree_TreeBuilder___init__() local
610fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in _elementtree_TreeBuilder___init__()
611 if (!fastargs) { in _elementtree_TreeBuilder___init__()
617 if (fastargs[0]) { in _elementtree_TreeBuilder___init__()
618 element_factory = fastargs[0]; in _elementtree_TreeBuilder___init__()
627 if (fastargs[1]) { in _elementtree_TreeBuilder___init__()
628 comment_factory = fastargs[1]; in _elementtree_TreeBuilder___init__()
633 if (fastargs[2]) { in _elementtree_TreeBuilder___init__()
634 pi_factory = fastargs[2]; in _elementtree_TreeBuilder___init__()
639 if (fastargs[3]) { in _elementtree_TreeBuilder___init__()
[all …]
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 …]
Dselectmodule.c.h520 PyObject * const *fastargs; in select_epoll() local
526fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in select_epoll()
527 if (!fastargs) { in select_epoll()
533 if (fastargs[0]) { in select_epoll()
534 if (PyFloat_Check(fastargs[0])) { in select_epoll()
539 sizehint = _PyLong_AsInt(fastargs[0]); in select_epoll()
547 if (PyFloat_Check(fastargs[1])) { in select_epoll()
552 flags = _PyLong_AsInt(fastargs[1]); in select_epoll()
D_struct.c.h26 PyObject * const *fastargs; in Struct___init__() local
30fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 1… in Struct___init__()
31 if (!fastargs) { in Struct___init__()
34 format = fastargs[0]; in Struct___init__()
/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 if (PyFloat_Check(fastargs[1])) { in _io_IncrementalNewlineDecoder___init__()
47 translate = _PyLong_AsInt(fastargs[1]); in _io_IncrementalNewlineDecoder___init__()
54 errors = fastargs[2]; in _io_IncrementalNewlineDecoder___init__()
198 PyObject * const *fastargs; in _io_TextIOWrapper___init__() local
208fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 6… in _io_TextIOWrapper___init__()
209 if (!fastargs) { 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 if (PyFloat_Check(fastargs[2])) { in _io__WindowsConsoleIO___init__()
[all …]
Dbufferedio.c.h423 PyObject * const *fastargs; in _io_BufferedReader___init__() local
429fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in _io_BufferedReader___init__()
430 if (!fastargs) { in _io_BufferedReader___init__()
433 raw = fastargs[0]; in _io_BufferedReader___init__()
437 if (PyFloat_Check(fastargs[1])) { in _io_BufferedReader___init__()
444 PyObject *iobj = PyNumber_Index(fastargs[1]); in _io_BufferedReader___init__()
482 PyObject * const *fastargs; in _io_BufferedWriter___init__() local
488fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in _io_BufferedWriter___init__()
489 if (!fastargs) { in _io_BufferedWriter___init__()
492 raw = fastargs[0]; in _io_BufferedWriter___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 if (PyFloat_Check(fastargs[2])) { in _io_FileIO___init__()
[all …]
Dstringio.c.h271 PyObject * const *fastargs; in _io_StringIO___init__() local
277fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in _io_StringIO___init__()
278 if (!fastargs) { in _io_StringIO___init__()
284 if (fastargs[0]) { in _io_StringIO___init__()
285 value = fastargs[0]; in _io_StringIO___init__()
290 newline_obj = fastargs[1]; in _io_StringIO___init__()
Dbytesio.c.h499 PyObject * const *fastargs; in _io_BytesIO___init__() local
504fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in _io_BytesIO___init__()
505 if (!fastargs) { in _io_BytesIO___init__()
511 initvalue = fastargs[0]; in _io_BytesIO___init__()
/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