Home
last modified time | relevance | path

Searched refs:kwds (Results 1 - 25 of 129) sorted by relevance

123456

/third_party/python/Lib/email/
H A 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):
267 kwds['parse_tre
[all...]
/third_party/python/Lib/lib2to3/fixes/
H A Dfix_apply.py24 (not argument<NAME '=' any>) kwds=any] [',']
36 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
[all...]
/third_party/python/Lib/
H A Dcontextlib.py79 def inner(*args, **kwds):
81 return func(*args, **kwds)
95 async def inner(*args, **kwds):
97 return await func(*args, **kwds)
104 def __init__(self, func, args, kwds):
105 self.gen = func(*args, **kwds)
106 self.func, self.args, self.kwds = func, args, kwds
122 return self.__class__(self.func, self.args, self.kwds)
133 # do not keep args and kwds aliv
[all...]
H A Dtypes.py67 def new_class(name, bases=(), kwds=None, exec_body=None):
70 meta, ns, kwds = prepare_class(name, resolved_bases, kwds)
75 return meta(name, resolved_bases, ns, **kwds)
98 def prepare_class(name, bases=(), kwds=None):
101 Returns (metaclass, namespace, kwds) as a 3-tuple
105 *kwds* is an updated copy of the passed in kwds argument with any
106 'metaclass' entry removed. If no kwds argument is passed in, this will
109 if kwds i
[all...]
H A 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, type
[all...]
/third_party/PyYAML/lib/yaml/
H A D__init__.py208 def serialize(node, stream=None, Dumper=Dumper, **kwds):
213 return serialize_all([node], stream, Dumper=Dumper, **kwds)
248 def dump(data, stream=None, Dumper=Dumper, **kwds):
253 return dump_all([data], stream, Dumper=Dumper, **kwds)
255 def safe_dump_all(documents, stream=None, **kwds):
261 return dump_all(documents, stream, Dumper=SafeDumper, **kwds)
263 def safe_dump(data, stream=None, **kwds):
269 return dump_all([data], stream, Dumper=SafeDumper, **kwds)
351 def __init__(cls, name, bases, kwds):
352 super(YAMLObjectMetaclass, cls).__init__(name, bases, kwds)
[all...]
/third_party/PyYAML/tests/lib/
H A Dtest_yaml_ext.py45 def new_emit(events, stream=None, Dumper=yaml.CDumper, **kwds):
46 return old_emit(events, stream, Dumper, **kwds)
49 def new_serialize(node, stream, Dumper=yaml.CDumper, **kwds):
50 return old_serialize(node, stream, Dumper, **kwds)
53 def new_serialize_all(nodes, stream=None, Dumper=yaml.CDumper, **kwds):
54 return old_serialize_all(nodes, stream, Dumper, **kwds)
57 def new_dump(data, stream=None, Dumper=yaml.CDumper, **kwds):
58 return old_dump(data, stream, Dumper, **kwds)
61 def new_dump_all(documents, stream=None, Dumper=yaml.CDumper, **kwds):
62 return old_dump_all(documents, stream, Dumper, **kwds)
[all...]
/third_party/python/Lib/test/
H A Dtest_decorators.py5 def funcattrs(**kwds):
7 func.__dict__.update(kwds)
22 def __init__(self, exprstr, func, args, kwds):
24 Exception.__init__(self, "dbcheck %r failed (func=%s args=%s kwds=%s)" %
25 (exprstr, func, args, kwds))
32 def check(*args, **kwds):
34 raise DbcheckError(exprstr, func, args, kwds)
35 return func(*args, **kwds)
46 def call(*args, **kwds):
48 return func(*args, **kwds)
[all...]
H A Dtest_pickle.py52 def loads(self, buf, **kwds):
54 u = self.unpickler(f, **kwds)
70 def loads(self, buf, **kwds):
72 u = self.unpickler(f, **kwds)
87 def loads(self, buf, **kwds):
88 return pickle.loads(buf, **kwds)
104 def loads(self, buf, **kwds):
109 u = PersUnpickler(f, **kwds)
/third_party/python/Objects/
H A Dnamespaceobject.c23 namespace_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in namespace_new() argument
42 namespace_init(_PyNamespaceObject *ns, PyObject *args, PyObject *kwds) in namespace_init() argument
48 if (kwds == NULL) { in namespace_init()
51 if (!PyArg_ValidateKeywordArguments(kwds)) { in namespace_init()
54 return PyDict_Update(ns->ns_dict, kwds); in namespace_init()
248 _PyNamespace_New(PyObject *kwds) in _PyNamespace_New() argument
254 if (kwds == NULL) in _PyNamespace_New()
256 if (PyDict_Update(((_PyNamespaceObject *)ns)->ns_dict, kwds) != 0) { in _PyNamespace_New()
/third_party/python/Lib/idlelib/idle_test/
H A Dmock_idle.py12 self.called - increment call number even if no args, kwds passed.
14 self.kwds - capture keyword arguments.
27 self.kwds = None
28 def __call__(self, *args, **kwds):
31 self.kwds = kwds
H A Dmock_tk.py24 def __init__(self, **kwds):
26 self.__dict__.update(kwds)
50 def __call__(self, title, message, *args, **kwds):
55 self.kwds = kwds
/third_party/python/Lib/multiprocessing/
H A Dmanagers.py85 def dispatch(c, id, methodname, args=(), kwds={}):
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):
382 if kwds or (len(args) != 1):
387 obj = callable(*args, **kwds)
[all...]
H A Dspawn.py70 kwds = {}
74 kwds[name] = None
76 kwds[name] = int(value)
77 spawn_main(**kwds)
81 def get_command_line(**kwds):
87 ['%s=%r' % item for item in kwds.items()])
90 prog %= ', '.join('%s=%r' % item for item in kwds.items())
H A 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):
159 super().__init__(*args, **kwds)
180 def Process(ctx, *args, **kwds):
181 return ctx.Process(*args, **kwds)
355 def apply(self, func, args=(), kwds={}):
357 Equivalent of `func(*args, **kwds)`.
360 return self.apply_async(func, args, kwds)
[all...]
/third_party/python/Modules/
H A D_functoolsmodule.c544 keyobject_call(keyobject *ko, PyObject *args, PyObject *kwds);
569 keyobject_call(keyobject *ko, PyObject *args, PyObject *kwds) in keyobject_call() argument
575 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:K", kwargs, &object)) in keyobject_call()
629 functools_cmp_to_key(PyObject *self, PyObject *args, PyObject *kwds) in functools_cmp_to_key() argument
636 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:cmp_to_key", kwargs, &cmp)) in functools_cmp_to_key()
813 PyObject *kwds, int typed) in lru_cache_make_key()
818 kwds_size = kwds ? PyDict_GET_SIZE(kwds) : 0; in lru_cache_make_key()
854 for (pos = 0; PyDict_Next(kwds, &pos, &keyword, &value);) { in lru_cache_make_key()
869 for (pos = 0; PyDict_Next(kwds, in lru_cache_make_key()
812 lru_cache_make_key(PyObject *kwd_mark, PyObject *args, PyObject *kwds, int typed) lru_cache_make_key() argument
881 uncached_lru_cache_wrapper(lru_cache_object *self, PyObject *args, PyObject *kwds) uncached_lru_cache_wrapper() argument
893 infinite_lru_cache_wrapper(lru_cache_object *self, PyObject *args, PyObject *kwds) infinite_lru_cache_wrapper() argument
992 bounded_lru_cache_wrapper(lru_cache_object *self, PyObject *args, PyObject *kwds) bounded_lru_cache_wrapper() argument
1287 lru_cache_call(lru_cache_object *self, PyObject *args, PyObject *kwds) lru_cache_call() argument
[all...]
H A 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()
H A D_operator.c989 itemgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in itemgetter_new() argument
996 if (!_PyArg_NoKeywords("itemgetter", kwds)) in itemgetter_new()
1211 attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in attrgetter_new() argument
1217 if (!_PyArg_NoKeywords("attrgetter", kwds)) in attrgetter_new()
1567 PyObject *kwds; member
1572 methodcaller_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in methodcaller_new() argument
1602 Py_XINCREF(kwds); in methodcaller_new()
1603 mc->kwds = kwds; in methodcaller_new()
1620 Py_CLEAR(mc->kwds); in methodcaller_clear()
[all...]
H A D_xxsubinterpretersmodule.c1481 channelid_new(PyTypeObject *cls, PyObject *args, PyObject *kwds) in channelid_new() argument
1489 if (!PyArg_ParseTupleAndKeywords(args, kwds, in channelid_new()
1994 interp_create(PyObject *self, PyObject *args, PyObject *kwds) in interp_create() argument
1999 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|$i:create", kwlist, in interp_create()
2036 interp_destroy(PyObject *self, PyObject *args, PyObject *kwds) in interp_destroy() argument
2041 if (!PyArg_ParseTupleAndKeywords(args, kwds, in interp_destroy()
2158 interp_run_string(PyObject *self, PyObject *args, PyObject *kwds) in interp_run_string() argument
2163 if (!PyArg_ParseTupleAndKeywords(args, kwds, in interp_run_string()
2203 object_is_shareable(PyObject *self, PyObject *args, PyObject *kwds) in object_is_shareable() argument
2207 if (!PyArg_ParseTupleAndKeywords(args, kwds, in object_is_shareable()
2227 interp_is_running(PyObject *self, PyObject *args, PyObject *kwds) interp_is_running() argument
2280 channel_destroy(PyObject *self, PyObject *args, PyObject *kwds) channel_destroy() argument
2339 channel_list_interpreters(PyObject *self, PyObject *args, PyObject *kwds) channel_list_interpreters() argument
2401 channel_send(PyObject *self, PyObject *args, PyObject *kwds) channel_send() argument
2423 channel_recv(PyObject *self, PyObject *args, PyObject *kwds) channel_recv() argument
2458 channel_close(PyObject *self, PyObject *args, PyObject *kwds) channel_close() argument
2505 channel_release(PyObject *self, PyObject *args, PyObject *kwds) channel_release() argument
2540 channel__channel_id(PyObject *self, PyObject *args, PyObject *kwds) channel__channel_id() argument
[all...]
/third_party/python/Tools/peg_generator/peg_extension/
H A 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/Lib/asyncio/
H A Dwindows_utils.py130 def __init__(self, args, stdin=None, stdout=None, stderr=None, **kwds):
131 assert not kwds.get('universal_newlines')
132 assert kwds.get('bufsize', 0) == 0
154 stderr=stderr_wfd, **kwds)
H A Dstreams.py27 limit=_DEFAULT_LIMIT, **kwds):
49 lambda: protocol, host, port, **kwds)
55 limit=_DEFAULT_LIMIT, **kwds):
85 return await loop.create_server(factory, host, port, **kwds)
92 limit=_DEFAULT_LIMIT, **kwds):
99 lambda: protocol, path, **kwds)
104 limit=_DEFAULT_LIMIT, **kwds):
114 return await loop.create_unix_server(factory, path, **kwds)
/third_party/protobuf/python/google/protobuf/pyext/
H A Drepeated_composite_container.cc400 PyObject* kwds) { in Subscript()
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()
425 // and kwds might be the only thing keeping it alive. 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()
398 SortPythonMessages(RepeatedCompositeContainer* self, PyObject* args, PyObject* kwds) Subscript() argument
/third_party/python/Doc/includes/
H A 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()
/third_party/python/Lib/curses/
H A D__init__.py63 def wrapper(func, /, *args, **kwds):
94 return func(stdscr, *args, **kwds)

Completed in 19 milliseconds

123456