Home
last modified time | relevance | path

Searched refs:kwds (Results 1 – 25 of 171) sorted by relevance

1234567

/third_party/python/Lib/email/
Dheaderregistry.py191 kwds = {'defects': []}
192 cls.parse(value, kwds)
193 if utils._has_surrogates(kwds['decoded']):
194 kwds['decoded'] = utils._sanitize(kwds['decoded'])
195 self = str.__new__(cls, kwds['decoded'])
196 del kwds['decoded']
197 self.init(name, **kwds)
266 def parse(cls, value, kwds): argument
267 kwds['parse_tree'] = cls.value_parser(value)
268 kwds['decoded'] = str(kwds['parse_tree'])
[all …]
/third_party/python/Lib/lib2to3/fixes/
Dfix_apply.py36 kwds = results.get("kwds")
43 if kwds and (kwds.type == self.syms.argument and
44 kwds.children[0].value == '**'):
56 if kwds is not None:
57 kwds = kwds.clone()
58 kwds.prefix = ""
60 if kwds is not None:
63 kwds])
/third_party/python/Lib/
Dcontextlib.py77 def inner(*args, **kwds): argument
79 return func(*args, **kwds)
93 async def inner(*args, **kwds): argument
95 return await func(*args, **kwds)
102 def __init__(self, func, args, kwds): argument
103 self.gen = func(*args, **kwds)
104 self.func, self.args, self.kwds = func, args, kwds
120 return self.__class__(self.func, self.args, self.kwds)
133 del self.args, self.kwds, self.func
197 del self.args, self.kwds, self.func
[all …]
Dtypes.py69 def new_class(name, bases=(), kwds=None, exec_body=None): argument
72 meta, ns, kwds = prepare_class(name, resolved_bases, kwds)
77 return meta(name, resolved_bases, ns, **kwds)
100 def prepare_class(name, bases=(), kwds=None): argument
111 if kwds is None:
112 kwds = {}
114 kwds = dict(kwds) # Don't alter the provided mapping
115 if 'metaclass' in kwds:
116 meta = kwds.pop('metaclass')
127 ns = meta.__prepare__(name, bases, **kwds)
[all …]
Dfunctools.py322 func, args, kwds, namespace = state
324 (kwds is not None and not isinstance(kwds, dict)) or
329 if kwds is None:
330 kwds = {}
331 elif type(kwds) is not dict: # XXX does it need to be *exactly* dict?
332 kwds = dict(kwds)
339 self.keywords = kwds
448 def _make_key(args, kwds, typed, argument
467 if kwds:
469 for item in kwds.items():
[all …]
/third_party/PyYAML/lib/yaml/
D__init__.py208 def serialize(node, stream=None, Dumper=Dumper, **kwds): argument
213 return serialize_all([node], stream, Dumper=Dumper, **kwds)
248 def dump(data, stream=None, Dumper=Dumper, **kwds): argument
253 return dump_all([data], stream, Dumper=Dumper, **kwds)
255 def safe_dump_all(documents, stream=None, **kwds): argument
261 return dump_all(documents, stream, Dumper=SafeDumper, **kwds)
263 def safe_dump(data, stream=None, **kwds): argument
269 return dump_all([data], stream, Dumper=SafeDumper, **kwds)
351 def __init__(cls, name, bases, kwds): argument
352 super(YAMLObjectMetaclass, cls).__init__(name, bases, kwds)
[all …]
/third_party/PyYAML/tests/lib/
Dtest_yaml_ext.py45 def new_emit(events, stream=None, Dumper=yaml.CDumper, **kwds): argument
46 return old_emit(events, stream, Dumper, **kwds)
49 def new_serialize(node, stream, Dumper=yaml.CDumper, **kwds): argument
50 return old_serialize(node, stream, Dumper, **kwds)
53 def new_serialize_all(nodes, stream=None, Dumper=yaml.CDumper, **kwds): argument
54 return old_serialize_all(nodes, stream, Dumper, **kwds)
57 def new_dump(data, stream=None, Dumper=yaml.CDumper, **kwds): argument
58 return old_dump(data, stream, Dumper, **kwds)
61 def new_dump_all(documents, stream=None, Dumper=yaml.CDumper, **kwds): argument
62 return old_dump_all(documents, stream, Dumper, **kwds)
[all …]
/third_party/python/Objects/
Dnamespaceobject.c22 namespace_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in namespace_new() argument
41 namespace_init(_PyNamespaceObject *ns, PyObject *args, PyObject *kwds) in namespace_init() argument
47 if (kwds == NULL) { in namespace_init()
50 if (!PyArg_ValidateKeywordArguments(kwds)) { in namespace_init()
53 return PyDict_Update(ns->ns_dict, kwds); in namespace_init()
247 _PyNamespace_New(PyObject *kwds) in _PyNamespace_New() argument
253 if (kwds == NULL) in _PyNamespace_New()
255 if (PyDict_Update(((_PyNamespaceObject *)ns)->ns_dict, kwds) != 0) { in _PyNamespace_New()
Dexceptions.c39 BaseException_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in BaseException_new() argument
67 BaseException_init(PyBaseExceptionObject *self, PyObject *args, PyObject *kwds) in BaseException_init() argument
69 if (!_PyArg_NoKeywords(Py_TYPE(self)->tp_name, kwds)) in BaseException_init()
511 StopIteration_init(PyStopIterationObject *self, PyObject *args, PyObject *kwds) in StopIteration_init() argument
516 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in StopIteration_init()
575 SystemExit_init(PySystemExitObject *self, PyObject *args, PyObject *kwds) in SystemExit_init() argument
579 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in SystemExit_init()
639 ImportError_init(PyImportErrorObject *self, PyObject *args, PyObject *kwds) in ImportError_init() argument
653 if (!PyArg_ParseTupleAndKeywords(empty_tuple, kwds, "|$OO:ImportError", kwlist, in ImportError_init()
942 OSError_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
[all …]
/third_party/python/Lib/test/
Dtest_decorators.py5 def funcattrs(**kwds): argument
7 func.__dict__.update(kwds)
22 def __init__(self, exprstr, func, args, kwds): argument
25 (exprstr, func, args, kwds))
32 def check(*args, **kwds): argument
34 raise DbcheckError(exprstr, func, args, kwds)
35 return func(*args, **kwds)
46 def call(*args, **kwds): argument
48 return func(*args, **kwds)
119 def noteargs(*args, **kwds): argument
[all …]
Dtest_contextlib_async.py289 async def woohoo(self, func, args, kwds): argument
290 yield (self, func, args, kwds)
291 async with woohoo(self=11, func=22, args=33, kwds=44) as target:
433 async def _exit(*args, **kwds): argument
435 result.append((args, kwds))
438 for args, kwds in reversed(expected):
439 if args and kwds:
440 f = stack.push_async_callback(_exit, *args, **kwds)
443 elif kwds:
444 f = stack.push_async_callback(_exit, **kwds)
/third_party/python/Lib/idlelib/idle_test/
Dmock_idle.py27 self.kwds = None
28 def __call__(self, *args, **kwds): argument
31 self.kwds = kwds
Dmock_tk.py24 def __init__(self, **kwds): argument
26 self.__dict__.update(kwds)
50 def __call__(self, title, message, *args, **kwds): argument
55 self.kwds = kwds
/third_party/python/Lib/multiprocessing/
Dspawn.py67 kwds = {}
71 kwds[name] = None
73 kwds[name] = int(value)
74 spawn_main(**kwds)
78 def get_command_line(**kwds): argument
84 ['%s=%r' % item for item in kwds.items()])
87 prog %= ', '.join('%s=%r' % item for item in kwds.items())
Dmanagers.py85 def dispatch(c, id, methodname, args=(), kwds={}): argument
89 c.send((id, methodname, args, kwds))
202 ignore, funcname, args, kwds = request
209 result = func(c, *args, **kwds)
254 ident, methodname, args, kwds = request
273 res = function(*args, **kwds)
292 self, conn, ident, obj, *args, **kwds
373 def create(self, c, typeid, /, *args, **kwds): argument
382 if kwds or (len(args) != 1):
387 obj = callable(*args, **kwds)
[all …]
Dpool.py123 job, i, func, args, kwds = task
125 result = (True, func(*args, **kwds))
138 task = job = result = func = args = kwds = None
157 def __init__(self, /, *args, notifier=None, **kwds): argument
159 super().__init__(*args, **kwds)
180 def Process(ctx, *args, **kwds): argument
181 return ctx.Process(*args, **kwds)
352 def apply(self, func, args=(), kwds={}): argument
357 return self.apply_async(func, args, kwds).get()
450 def apply_async(self, func, args=(), kwds={}, callback=None, argument
[all …]
/third_party/python/Tools/peg_generator/peg_extension/
Dpeg_extension.c23 parse_file(PyObject *self, PyObject *args, PyObject *kwds) in parse_file() argument
28 if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|i", keywords, &filename, &mode)) { in parse_file()
71 parse_string(PyObject *self, PyObject *args, PyObject *kwds) in parse_string() argument
76 if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|i", keywords, &the_string, &mode)) { in parse_string()
/third_party/python/Modules/
D_functoolsmodule.c543 keyobject_call(keyobject *ko, PyObject *args, PyObject *kwds);
568 keyobject_call(keyobject *ko, PyObject *args, PyObject *kwds) in keyobject_call() argument
574 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:K", kwargs, &object)) in keyobject_call()
628 functools_cmp_to_key(PyObject *self, PyObject *args, PyObject *kwds) in functools_cmp_to_key() argument
635 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:cmp_to_key", kwargs, &cmp)) in functools_cmp_to_key()
812 PyObject *kwds, int typed) in lru_cache_make_key() argument
817 kwds_size = kwds ? PyDict_GET_SIZE(kwds) : 0; in lru_cache_make_key()
853 for (pos = 0; PyDict_Next(kwds, &pos, &keyword, &value);) { in lru_cache_make_key()
868 for (pos = 0; PyDict_Next(kwds, &pos, &keyword, &value);) { in lru_cache_make_key()
880 uncached_lru_cache_wrapper(lru_cache_object *self, PyObject *args, PyObject *kwds) in uncached_lru_cache_wrapper() argument
[all …]
D_operator.c960 itemgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in itemgetter_new() argument
967 if (!_PyArg_NoKeywords("itemgetter", kwds)) in itemgetter_new()
1151 attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in attrgetter_new() argument
1157 if (!_PyArg_NoKeywords("attrgetter", kwds)) in attrgetter_new()
1480 PyObject *kwds; member
1485 methodcaller_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in methodcaller_new() argument
1515 Py_XINCREF(kwds); in methodcaller_new()
1516 mc->kwds = kwds; in methodcaller_new()
1533 Py_CLEAR(mc->kwds); in methodcaller_clear()
1552 Py_VISIT(mc->kwds); in methodcaller_traverse()
[all …]
Dxxsubtype.c83 spamlist_init(spamlistobject *self, PyObject *args, PyObject *kwds) in spamlist_init() argument
85 if (PyList_Type.tp_init((PyObject *)self, args, kwds) < 0) in spamlist_init()
180 spamdict_init(spamdictobject *self, PyObject *args, PyObject *kwds) in spamdict_init() argument
182 if (PyDict_Type.tp_init((PyObject *)self, args, kwds) < 0) in spamdict_init()
D_xxsubinterpretersmodule.c1477 channelid_new(PyTypeObject *cls, PyObject *args, PyObject *kwds) in channelid_new() argument
1485 if (!PyArg_ParseTupleAndKeywords(args, kwds, in channelid_new()
2009 interp_create(PyObject *self, PyObject *args, PyObject *kwds) in interp_create() argument
2014 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|$i:create", kwlist, in interp_create()
2051 interp_destroy(PyObject *self, PyObject *args, PyObject *kwds) in interp_destroy() argument
2056 if (!PyArg_ParseTupleAndKeywords(args, kwds, in interp_destroy()
2173 interp_run_string(PyObject *self, PyObject *args, PyObject *kwds) in interp_run_string() argument
2178 if (!PyArg_ParseTupleAndKeywords(args, kwds, in interp_run_string()
2218 object_is_shareable(PyObject *self, PyObject *args, PyObject *kwds) in object_is_shareable() argument
2222 if (!PyArg_ParseTupleAndKeywords(args, kwds, in object_is_shareable()
[all …]
/third_party/python/Lib/asyncio/
Dwindows_utils.py130 def __init__(self, args, stdin=None, stdout=None, stderr=None, **kwds): argument
131 assert not kwds.get('universal_newlines')
132 assert kwds.get('bufsize', 0) == 0
154 stderr=stderr_wfd, **kwds)
Dstreams.py26 limit=_DEFAULT_LIMIT, **kwds): argument
48 lambda: protocol, host, port, **kwds)
54 limit=_DEFAULT_LIMIT, **kwds): argument
84 return await loop.create_server(factory, host, port, **kwds)
91 limit=_DEFAULT_LIMIT, **kwds): argument
98 lambda: protocol, path, **kwds)
103 limit=_DEFAULT_LIMIT, **kwds): argument
113 return await loop.create_unix_server(factory, path, **kwds)
/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc400 PyObject* kwds) { in Subscript() argument
409 if (ScopedPyObjectPtr(PyObject_Call(m.get(), args, kwds)) == NULL) in Subscript()
415 static PyObject* Sort(PyObject* pself, PyObject* args, PyObject* kwds) { in Subscript() argument
421 if (kwds != NULL) { in Subscript()
422 PyObject* sort_func = PyDict_GetItemString(kwds, "sort_function"); in Subscript()
426 PyDict_SetItemString(kwds, "cmp", sort_func); in Subscript()
427 PyDict_DelItemString(kwds, "sort_function"); in Subscript()
431 if (SortPythonMessages(self, args, kwds) < 0) { in Subscript()
/third_party/python/Doc/includes/
Dcustom2.c21 Custom_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in Custom_new() argument
42 Custom_init(CustomObject *self, PyObject *args, PyObject *kwds) in Custom_init() argument
47 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOi", kwlist, in Custom_init()

1234567