/third_party/python/Lib/test/ |
H A D | test_keyword.py | 18 oldlist = keyword.kwlist 19 self.addCleanup(setattr, keyword, 'kwlist', oldlist) 20 keyword.kwlist = ['its', 'all', 'eggs', 'beans', 'and', 'a', 'slice'] 30 for key in keyword.kwlist: 39 self.assertIn("async", keyword.kwlist) 40 self.assertIn("await", keyword.kwlist) 48 self.assertListEqual(sorted(keyword.kwlist), keyword.kwlist)
|
/third_party/python/Lib/ |
H A D | keyword.py | 16 __all__ = ["iskeyword", "issoftkeyword", "kwlist", "softkwlist"] 18 kwlist = [ variable 62 iskeyword = frozenset(kwlist).__contains__
|
H A D | rlcompleter.py | 121 for word in keyword.kwlist + keyword.softkwlist:
|
/third_party/python/Python/ |
H A D | getargs.c | 1379 char **kwlist, ...) in PyArg_ParseTupleAndKeywords() 1387 kwlist == NULL) in PyArg_ParseTupleAndKeywords() 1393 va_start(va, kwlist); in PyArg_ParseTupleAndKeywords() 1394 retval = vgetargskeywords(args, keywords, format, kwlist, &va, 0); in PyArg_ParseTupleAndKeywords() 1403 char **kwlist, ...) in _PyArg_ParseTupleAndKeywords_SizeT() 1411 kwlist == NULL) in _PyArg_ParseTupleAndKeywords_SizeT() 1417 va_start(va, kwlist); in _PyArg_ParseTupleAndKeywords_SizeT() 1419 kwlist, &va, FLAG_SIZE_T); in _PyArg_ParseTupleAndKeywords_SizeT() 1429 char **kwlist, va_list va) in PyArg_VaParseTupleAndKeywords() 1437 kwlist in PyArg_VaParseTupleAndKeywords() 1376 PyArg_ParseTupleAndKeywords(PyObject *args, PyObject *keywords, const char *format, char **kwlist, ...) PyArg_ParseTupleAndKeywords() argument 1400 _PyArg_ParseTupleAndKeywords_SizeT(PyObject *args, PyObject *keywords, const char *format, char **kwlist, ...) _PyArg_ParseTupleAndKeywords_SizeT() argument 1426 PyArg_VaParseTupleAndKeywords(PyObject *args, PyObject *keywords, const char *format, char **kwlist, va_list va) PyArg_VaParseTupleAndKeywords() argument 1451 _PyArg_VaParseTupleAndKeywords_SizeT(PyObject *args, PyObject *keywords, const char *format, char **kwlist, va_list va) _PyArg_VaParseTupleAndKeywords_SizeT() argument 1619 vgetargskeywords(PyObject *args, PyObject *kwargs, const char *format, char **kwlist, va_list *p_va, int flags) vgetargskeywords() argument [all...] |
H A D | context.c | 862 static char *kwlist[] = {"", "default", NULL}; in contextvar_tp_new() local 867 args, kwds, "O|$O:ContextVar", kwlist, &name, &def)) in contextvar_tp_new()
|
H A D | bltinmodule.c | 1734 static char *kwlist[] = {"key", "default", NULL}; in min_max() local 1754 kwlist, &keyfunc, &defaultval); in min_max() 2704 static char *kwlist[] = {"strict", NULL}; in zip_new() local 2706 empty, kwds, "|$p:zip", kwlist, &strict); in zip_new()
|
/third_party/python/Modules/ |
H A D | _xxsubinterpretersmodule.c | 1483 static char *kwlist[] = {"id", "send", "recv", "force", "_resolve", NULL}; in channelid_new() local 1490 "O&|$pppp:ChannelID.__new__", kwlist, in channelid_new() 1997 static char *kwlist[] = {"isolated", NULL}; in interp_create() local 1999 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|$i:create", kwlist, in interp_create() 2038 static char *kwlist[] = {"id", NULL}; in interp_destroy() local 2042 "O:destroy", kwlist, &id)) { in interp_destroy() 2160 static char *kwlist[] = {"id", "script", "shared", NULL}; in interp_run_string() local 2164 "OU|O:run_string", kwlist, in interp_run_string() 2205 static char *kwlist[] = {"obj", NULL}; in object_is_shareable() local 2208 "O:is_shareable", kwlist, in object_is_shareable() 2229 static char *kwlist[] = {"id", NULL}; interp_is_running() local 2282 static char *kwlist[] = {"cid", NULL}; channel_destroy() local 2341 static char *kwlist[] = {"cid", "send", NULL}; channel_list_interpreters() local 2403 static char *kwlist[] = {"cid", "obj", NULL}; channel_send() local 2425 static char *kwlist[] = {"cid", "default", NULL}; channel_recv() local 2460 static char *kwlist[] = {"cid", "send", "recv", "force", NULL}; channel_close() local 2508 static char *kwlist[] = {"cid", "send", "recv", "force", NULL}; channel_release() local [all...] |
H A D | nismodule.c | 196 static char *kwlist[] = {"key", "map", "domain", NULL}; in nis_match() local 199 "Us|s:match", kwlist, in nis_match() 243 static char *kwlist[] = {"map", "domain", NULL}; in nis_cat() local 246 kwlist, &map, &domain)) { in nis_cat() 437 static char *kwlist[] = {"domain", NULL}; in nis_maps() local 440 "|s:maps", kwlist, &domain)) { in nis_maps()
|
H A D | faulthandler.c | 266 static char *kwlist[] = {"file", "all_threads", NULL}; in faulthandler_dump_traceback_py() local 274 "|Oi:dump_traceback", kwlist, in faulthandler_dump_traceback_py() 543 static char *kwlist[] = {"file", "all_threads", NULL}; in faulthandler_py_enable() local 550 "|Oi:enable", kwlist, &file, &all_threads)) in faulthandler_py_enable() 706 static char *kwlist[] = {"timeout", "repeat", "file", "exit", NULL}; in faulthandler_dump_traceback_later() local 718 "O|iOi:dump_traceback_later", kwlist, in faulthandler_dump_traceback_later() 908 static char *kwlist[] = {"signum", "file", "all_threads", "chain", NULL}; in faulthandler_register_py() local 920 "i|Oii:register", kwlist, in faulthandler_register_py()
|
H A D | _lsprof.c | 672 static char *kwlist[] = {"subcalls", "builtins", 0}; in profiler_enable() local 674 kwlist, &subcalls, &builtins)) in profiler_enable() 773 static char *kwlist[] = {"timer", "timeunit", in profiler_init() local 776 if (!PyArg_ParseTupleAndKeywords(args, kw, "|Odii:Profiler", kwlist, in profiler_init()
|
H A D | _zoneinfo.c | 267 static char *kwlist[] = {"key", NULL}; in zoneinfo_new() local 268 if (PyArg_ParseTupleAndKeywords(args, kw, "O", kwlist, &key) == 0) { in zoneinfo_new() 349 static char *kwlist[] = {"", "key", NULL}; in zoneinfo_from_file() local 350 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O", kwlist, &file_obj, in zoneinfo_from_file() 385 static char *kwlist[] = {"key", NULL}; in zoneinfo_no_cache() local 387 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O", kwlist, &key)) { in zoneinfo_no_cache() 403 static char *kwlist[] = {"only_keys", NULL}; in zoneinfo_clear_cache() local 405 if (!(PyArg_ParseTupleAndKeywords(args, kwargs, "|$O", kwlist, in zoneinfo_clear_cache()
|
H A D | _json.c | 1146 static char *kwlist[] = {"string", "idx", NULL}; in scanner_call() local 1147 if (!PyArg_ParseTupleAndKeywords(args, kwds, "On:scan_once", kwlist, &pystr, &idx)) in scanner_call() 1171 static char *kwlist[] = {"context", NULL}; in scanner_new() local 1173 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:make_scanner", kwlist, &ctx)) in scanner_new() 1240 static char *kwlist[] = {"markers", "default", "encoder", "indent", "key_separator", "item_separator", "sort_keys", "skipkeys", "allow_nan", NULL}; in encoder_new() local 1247 if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOOUUppp:make_encoder", kwlist, in encoder_new() 1295 static char *kwlist[] = {"obj", "_current_indent_level", NULL}; in encoder_call() local 1299 if (!PyArg_ParseTupleAndKeywords(args, kwds, "On:_iterencode", kwlist, in encoder_call()
|
H A D | _testbuffer.c | 1283 static char *kwlist[] = { in ndarray_init() local 1296 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OOnOii", kwlist, in ndarray_init() 1349 static char *kwlist[] = { in ndarray_push() local 1359 if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO|OnOi", kwlist, in ndarray_push() 2722 static char *kwlist[] = { in staticarray_init() local 2727 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O", kwlist, &legacy_mode)) in staticarray_init()
|
H A D | signalmodule.c | 754 static char *kwlist[] = { local 766 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|$p:set_wakeup_fd", kwlist, 776 if (!PyArg_ParseTupleAndKeywords(args, kwds, "i|$p:set_wakeup_fd", kwlist,
|
/third_party/skia/third_party/externals/brotli/python/ |
H A D | _brotli.cc | 178 static const char *kwlist[] = {"mode", "quality", "lgwin", "lgblock", NULL}; in brotli_Compressor_init() local 181 const_cast<char **>(kwlist), in brotli_Compressor_init() 460 static const char *kwlist[] = {NULL}; in brotli_Decompressor_init() local 463 const_cast<char **>(kwlist)); in brotli_Decompressor_init() 644 static const char *kwlist[] = {"string", NULL}; in brotli_decompress() local 648 const_cast<char **>(kwlist), &input); in brotli_decompress() 651 const_cast<char **>(kwlist), &input); in brotli_decompress()
|
/third_party/python/Lib/idlelib/ |
H A D | colorizer.py | 18 kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b" 25 r"\b(?:" + r"|".join(keyword.kwlist) + r")\b", # a keyword 41 r"\b(?:" + r"|".join(keyword.kwlist) + r")\b", # a keyword 47 name not in keyword.kwlist]
|
H A D | autocomplete.py | 13 completion_kwds = [s for s in keyword.kwlist
|
/third_party/python/Doc/includes/ |
H A D | custom2.c | 44 static char *kwlist[] = {"first", "last", "number", NULL}; in Custom_init() local 47 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOi", kwlist, in Custom_init()
|
H A D | custom4.c | 60 static char *kwlist[] = {"first", "last", "number", NULL}; in Custom_init() local 63 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|UUi", kwlist, in Custom_init()
|
H A D | custom3.c | 44 static char *kwlist[] = {"first", "last", "number", NULL}; in Custom_init() local 47 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|UUi", kwlist, in Custom_init()
|
/third_party/python/Objects/ |
H A D | interpreteridobject.c | 76 static char *kwlist[] = {"id", "force", NULL}; in interpid_new() local 80 "O&|$p:InterpreterID.__init__", kwlist, in interpid_new()
|
/third_party/python/Modules/_decimal/ |
H A D | _decimal.c | 1307 static char *kwlist[] = { in context_init() local 1324 "|OOOOOOOO", kwlist, in context_init() 1736 static char *kwlist[] = { in ctxmanager_new() local 1756 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOOOOOOOO", kwlist, &local, in ctxmanager_new() 2826 static char *kwlist[] = {"value", "context", NULL}; in dec_new() local 2830 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OO", kwlist, in dec_new() 3681 static char *kwlist[] = {"rounding", "context", NULL}; in PyDec_ToIntegralValue() local 3688 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OO", kwlist, in PyDec_ToIntegralValue() 3722 static char *kwlist[] = {"rounding", "context", NULL}; in PyDec_ToIntegralExact() local 3729 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OO", kwlist, in PyDec_ToIntegralExact() 4404 static char *kwlist[] = {"context", NULL}; dec_mpd_class() local 4421 static char *kwlist[] = {"context", NULL}; dec_mpd_to_eng() local 4452 static char *kwlist[] = {"other", "context", NULL}; dec_mpd_qcopy_sign() local 4487 static char *kwlist[] = {"other", "context", NULL}; dec_mpd_same_quantum() local 4519 static char *kwlist[] = {"exp", "rounding", "context", NULL}; dec_mpd_qquantize() local 5284 static char *kwlist[] = {"a", "b", "modulo", NULL}; ctx_mpd_qpow() local [all...] |
/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | message_factory.cc | 80 static char* kwlist[] = {"pool", 0}; in New() local 82 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O", kwlist, &pool)) { in New()
|
H A D | map_container.cc | 460 static char* kwlist[] = {"key", "default", nullptr}; in ScalarMapGet() local 463 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O", kwlist, &key, in ScalarMapGet() 755 static char* kwlist[] = {"key", "default", nullptr}; in MessageMapGet() local 758 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|O", kwlist, &key, in MessageMapGet()
|
H A D | descriptor_pool.cc | 179 static char* kwlist[] = {"descriptor_db", 0}; in New() local 181 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O", kwlist, &py_database)) { in New()
|