/external/python/cpython3/Lib/email/ |
D | headerregistry.py | 196 kwds = {'defects': []} 197 cls.parse(value, kwds) 198 if utils._has_surrogates(kwds['decoded']): 199 kwds['decoded'] = utils._sanitize(kwds['decoded']) 200 self = str.__new__(cls, kwds['decoded']) 201 del kwds['decoded'] 202 self.init(name, **kwds) 271 def parse(cls, value, kwds): argument 272 kwds['parse_tree'] = cls.value_parser(value) 273 kwds['decoded'] = str(kwds['parse_tree']) [all …]
|
/external/python/cpython3/Lib/lib2to3/fixes/ |
D | fix_apply.py | 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.prefix = "" 60 if kwds is not None: 63 kwds])
|
/external/python/cpython2/Lib/lib2to3/fixes/ |
D | fix_apply.py | 36 kwds = results.get("kwds") 45 if kwds and (kwds.type == self.syms.argument and 46 kwds.children[0].value == '**'): 58 if kwds is not None: 59 kwds = kwds.clone() 60 kwds.prefix = "" 62 if kwds is not None: 65 kwds])
|
/external/python/cpython3/Lib/ |
D | contextlib.py | 73 def inner(*args, **kwds): argument 75 return func(*args, **kwds) 82 def __init__(self, func, args, kwds): argument 83 self.gen = func(*args, **kwds) 84 self.func, self.args, self.kwds = func, args, kwds 106 return self.__class__(self.func, self.args, self.kwds) 111 del self.args, self.kwds, self.func 239 def helper(*args, **kwds): argument 240 return _GeneratorContextManager(func, args, kwds) 272 def helper(*args, **kwds): argument [all …]
|
D | types.py | 69 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 …]
|
D | functools.py | 315 func, args, kwds, namespace = state 317 (kwds is not None and not isinstance(kwds, dict)) or 322 if kwds is None: 323 kwds = {} 324 elif type(kwds) is not dict: # XXX does it need to be *exactly* dict? 325 kwds = dict(kwds) 332 self.keywords = kwds 455 def _make_key(args, kwds, typed, argument 474 if kwds: 476 for item in kwds.items(): [all …]
|
/external/python/cffi/cffi/ |
D | setuptools_ext.py | 63 module_name, source, source_extension, kwds = ffi._assigned_source 65 kwds = kwds.copy() 66 ffi._apply_windows_unicode(kwds) 71 _add_c_module(dist, ffi, module_name, source, source_extension, kwds) 73 def _set_py_limited_api(Extension, kwds): argument 90 if ('py_limited_api' not in kwds and not hasattr(sys, 'gettotalrefcount') 96 kwds['py_limited_api'] = True 101 kwds['py_limited_api'] = True 102 return kwds 104 def _add_c_module(dist, ffi, module_name, source, source_extension, kwds): argument [all …]
|
D | verifier.py | 34 source_extension='.c', flags=None, relative_to=None, **kwds): argument 42 flattened_kwds = ffiplatform.flatten(kwds) 45 self._vengine.patch_extension_kwds(kwds) 47 self.kwds = self.make_relative_to(kwds, relative_to) 126 return ffiplatform.get_extension(sourcename, modname, **self.kwds) 131 def make_relative_to(self, kwds, relative_to): argument 134 kwds = kwds.copy() 136 if key in kwds: 137 lst = kwds[key] 142 kwds[key] = lst [all …]
|
D | api.py | 575 def _apply_windows_unicode(self, kwds): argument 576 defmacros = kwds.get('define_macros', ()) 581 kwds['define_macros'] = defmacros 583 def _apply_embedding_fix(self, kwds): argument 586 lst = kwds.setdefault(key, []) 633 def set_source(self, module_name, source, source_extension='.c', **kwds): argument 644 source_extension, kwds) 647 source_extension='.c', **kwds): argument 653 pkgconfig.merge_flags(kwds, kwds2) 654 self.set_source(module_name, source, source_extension, **kwds) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_decorators.py | 4 def funcattrs(**kwds): argument 6 func.__dict__.update(kwds) 21 def __init__(self, exprstr, func, args, kwds): argument 24 (exprstr, func, args, kwds)) 31 def check(*args, **kwds): argument 33 raise DbcheckError(exprstr, func, args, kwds) 34 return func(*args, **kwds) 45 def call(*args, **kwds): argument 47 return func(*args, **kwds) 97 def noteargs(*args, **kwds): argument [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_decorators.py | 3 def funcattrs(**kwds): argument 5 func.__dict__.update(kwds) 20 def __init__(self, exprstr, func, args, kwds): argument 23 (exprstr, func, args, kwds)) 30 def check(*args, **kwds): argument 32 raise DbcheckError(exprstr, func, args, kwds) 33 return func(*args, **kwds) 44 def call(*args, **kwds): argument 46 return func(*args, **kwds) 96 def noteargs(*args, **kwds): argument [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
D | stateless_random_ops_test.py | 104 for stateless_op, stateful_op, kwds in float_cases: 105 kwds = dict(shape=shape, dtype=dtype, **kwds) 106 yield (functools.partial(stateless_op, **kwds), 107 functools.partial(stateful_op, **kwds)) 115 kwds = dict(minval=2, maxval=11111, dtype=dtype, shape=shape) 116 yield (functools.partial(stateless.stateless_random_uniform, **kwds), 117 functools.partial(random_ops.random_uniform, **kwds)) 125 kwds = dict( 129 yield (functools.partial(stateless.stateless_multinomial, **kwds), 130 functools.partial(random_ops.multinomial, **kwds))
|
/external/python/cpython3/Objects/ |
D | namespaceobject.c | 22 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() 249 _PyNamespace_New(PyObject *kwds) in _PyNamespace_New() argument 255 if (kwds == NULL) in _PyNamespace_New() 257 if (PyDict_Update(((_PyNamespaceObject *)ns)->ns_dict, kwds) != 0) { in _PyNamespace_New()
|
/external/tensorflow/tensorflow/python/eager/ |
D | def_function.py | 423 def wrapped_fn(*args, **kwds): argument 440 return weak_wrapped_fn().__wrapped__(*args, **kwds) 471 def _initialize(self, args, kwds, add_initializers_to=None): argument 489 def variable_capturing_scope(unused_next_creator, **kwds): argument 493 lifted_initializer_graph=lifted_initializer_graph, **kwds) 505 *args, **kwds)) 559 def __call__(self, *args, **kwds): argument 563 return self._python_function(*args, **kwds) 572 result = self._call(*args, **kwds) 576 result = self._call(*args, **kwds) [all …]
|
/external/python/cpython2/Lib/idlelib/idle_test/ |
D | mock_idle.py | 24 self.kwds = None 25 def __call__(self, *args, **kwds): argument 28 self.kwds = kwds
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | mock_idle.py | 27 self.kwds = None 28 def __call__(self, *args, **kwds): argument 31 self.kwds = kwds
|
/external/python/cpython2/Lib/multiprocessing/ |
D | sharedctypes.py | 97 def Value(typecode_or_type, *args, **kwds): argument 101 lock = kwds.pop('lock', None) 102 if kwds: 103 raise ValueError('unrecognized keyword argument(s): %s' % kwds.keys()) 113 def Array(typecode_or_type, size_or_initializer, **kwds): argument 117 lock = kwds.pop('lock', None) 118 if kwds: 119 raise ValueError('unrecognized keyword argument(s): %s' % kwds.keys())
|
D | managers.py | 97 def dispatch(c, id, methodname, args=(), kwds={}): argument 101 c.send((id, methodname, args, kwds)) 200 ignore, funcname, args, kwds = request 207 result = func(c, *args, **kwds) 241 ident, methodname, args, kwds = request 253 res = function(*args, **kwds) 272 self, conn, ident, obj, *args, **kwds 373 def create(self, c, typeid, *args, **kwds): argument 383 assert len(args) == 1 and not kwds 386 obj = callable(*args, **kwds) [all …]
|
/external/python/cpython3/Lib/curses/ |
D | __init__.py | 63 def wrapper(*args, **kwds): argument 73 elif 'func' in kwds: 74 func = kwds.pop('func') 105 return func(stdscr, *args, **kwds)
|
/external/python/cpython3/Lib/multiprocessing/ |
D | managers.py | 83 def dispatch(c, id, methodname, args=(), kwds={}): argument 87 c.send((id, methodname, args, kwds)) 203 ignore, funcname, args, kwds = request 210 result = func(c, *args, **kwds) 244 ident, methodname, args, kwds = request 263 res = function(*args, **kwds) 282 self, conn, ident, obj, *args, **kwds 363 def create(*args, **kwds): argument 373 if 'typeid' not in kwds: 376 typeid = kwds.pop('typeid') [all …]
|
D | spawn.py | 67 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())
|
/external/python/cffi/c/ |
D | ffi_obj.c | 86 static PyObject *ffiobj_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in ffiobj_new() argument 93 static int ffiobj_init(PyObject *self, PyObject *args, PyObject *kwds); 335 static PyObject *_ffi_new(FFIObject *self, PyObject *args, PyObject *kwds, in _ffi_new() argument 341 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O:new", keywords, in _ffi_new() 352 static PyObject *ffi_new(FFIObject *self, PyObject *args, PyObject *kwds) in ffi_new() argument 354 return _ffi_new(self, args, kwds, &default_allocator); in ffi_new() 358 PyObject *kwds) in _ffi_new_with_allocator() argument 369 args, kwds, &alloc1); in _ffi_new_with_allocator() 387 PyObject *kwds) in ffi_new_allocator() argument 394 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOi:new_allocator", keywords, in ffi_new_allocator() [all …]
|
/external/python/cpython2/Lib/ |
D | collections.py | 50 def __init__(*args, **kwds): argument 69 self.__update(*args, **kwds) 458 def __init__(*args, **kwds): argument 477 self.update(*args, **kwds) 528 def update(*args, **kwds): argument 568 if kwds: 569 self.update(kwds) 571 def subtract(*args, **kwds): argument 603 if kwds: 604 self.subtract(kwds) [all …]
|
/external/python/cffi/testing/cffi0/ |
D | test_zintegration.py | 164 kwds = _set_py_limited_api(Extension, {}) 165 assert kwds.get('py_limited_api', False) == expecting_limited_api 168 kwds = _set_py_limited_api(Extension, {}) 169 assert kwds.get('py_limited_api', False) == False 172 kwds = _set_py_limited_api(Extension, {}) 173 assert kwds.get('py_limited_api', False) == expecting_limited_api
|
/external/python/cpython2/Modules/ |
D | itertoolsmodule.c | 25 groupby_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in groupby_new() argument 31 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O:groupby", kwargs, in groupby_new() 685 cycle_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in cycle_new() argument 692 if (type == &cycle_type && !_PyArg_NoKeywords("cycle()", kwds)) in cycle_new() 837 dropwhile_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in dropwhile_new() argument 843 if (type == &dropwhile_type && !_PyArg_NoKeywords("dropwhile()", kwds)) in dropwhile_new() 981 takewhile_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in takewhile_new() argument 987 if (type == &takewhile_type && !_PyArg_NoKeywords("takewhile()", kwds)) in takewhile_new() 1123 islice_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in islice_new() argument 1131 if (type == &islice_type && !_PyArg_NoKeywords("islice()", kwds)) in islice_new() [all …]
|