/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") 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/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 | 72 def inner(*args, **kwds): argument 74 return func(*args, **kwds) 81 def __init__(self, func, args, kwds): argument 82 self.gen = func(*args, **kwds) 83 self.func, self.args, self.kwds = func, args, kwds 105 return self.__class__(self.func, self.args, self.kwds) 110 del self.args, self.kwds, self.func 238 def helper(*args, **kwds): argument 239 return _GeneratorContextManager(func, args, kwds) 271 def helper(*args, **kwds): argument [all …]
|
D | types.py | 62 def new_class(name, bases=(), kwds=None, exec_body=None): argument 65 meta, ns, kwds = prepare_class(name, resolved_bases, kwds) 70 return meta(name, resolved_bases, ns, **kwds) 93 def prepare_class(name, bases=(), kwds=None): argument 104 if kwds is None: 105 kwds = {} 107 kwds = dict(kwds) # Don't alter the provided mapping 108 if 'metaclass' in kwds: 109 meta = kwds.pop('metaclass') 120 ns = meta.__prepare__(name, bases, **kwds) [all …]
|
D | functools.py | 293 func, args, kwds, namespace = state 295 (kwds is not None and not isinstance(kwds, dict)) or 300 if kwds is None: 301 kwds = {} 302 elif type(kwds) is not dict: # XXX does it need to be *exactly* dict? 303 kwds = dict(kwds) 310 self.keywords = kwds 414 def _make_key(args, kwds, typed, argument 433 if kwds: 435 for item in kwds.items(): [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 …]
|
D | test_contextlib_async.py | 254 async def woohoo(self, func, args, kwds): argument 255 yield (self, func, args, kwds) 256 async with woohoo(self=11, func=22, args=33, kwds=44) as target: 310 async def _exit(*args, **kwds): argument 312 result.append((args, kwds)) 315 for args, kwds in reversed(expected): 316 if args and kwds: 317 f = stack.push_async_callback(_exit, *args, **kwds) 320 elif kwds: 321 f = stack.push_async_callback(_exit, **kwds)
|
/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() 246 _PyNamespace_New(PyObject *kwds) in _PyNamespace_New() argument 252 if (kwds == NULL) in _PyNamespace_New() 254 if (PyDict_Update(((_PyNamespaceObject *)ns)->ns_dict, kwds) != 0) { in _PyNamespace_New()
|
/external/tensorflow/tensorflow/python/eager/ |
D | def_function.py | 299 def wrapped_fn(*args, **kwds): argument 316 return weak_wrapped_fn().__wrapped__(*args, **kwds) 329 def _initialize(self, args, kwds, add_initializers_to=None): argument 347 def variable_capturing_scope(unused_next_creator, **kwds): argument 351 lifted_initializer_graph=lifted_initializer_graph, **kwds) 363 *args, **kwds)) 400 def __call__(self, *args, **kwds): argument 403 return self._python_function(*args, **kwds) 407 return self._stateless_fn(*args, **kwds) # pylint: disable=not-callable 411 results = self._stateful_fn(*args, **kwds) [all …]
|
D | backprop.py | 195 def grad_fn(*args, **kwds): argument 199 end_node = f(*args, **kwds) 263 def grad_fn(*args, **kwds): argument 265 return implicit_val_and_grad(f)(*args, **kwds)[1] 360 def decorated(*args, **kwds): argument 363 _, grad = val_and_grad_function(f, params=params)(*args, **kwds) 457 def decorated(*args, **kwds): argument 459 dy = kwds.pop("dy", None) 460 if kwds: 463 val, vjp = make_vjp(f, params)(*args, **kwds) [all …]
|
/external/python/cpython2/Lib/multiprocessing/ |
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 …]
|
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())
|
/external/python/cpython3/Lib/multiprocessing/ |
D | managers.py | 74 def dispatch(c, id, methodname, args=(), kwds={}): argument 78 c.send((id, methodname, args, kwds)) 194 ignore, funcname, args, kwds = request 201 result = func(c, *args, **kwds) 235 ident, methodname, args, kwds = request 254 res = function(*args, **kwds) 273 self, conn, ident, obj, *args, **kwds 354 def create(self, c, typeid, *args, **kwds): argument 363 if kwds or (len(args) != 1): 368 obj = callable(*args, **kwds) [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/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/idlelib/idle_test/ |
D | mock_idle.py | 24 self.kwds = None 25 def __call__(self, *args, **kwds): argument 28 self.kwds = kwds
|
/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/apitools/apitools/base/py/ |
D | credentials_lib.py | 121 **kwds): argument 131 credentials = method(client_info, **kwds) 234 def __init__(self, scopes=None, service_account_name='default', **kwds): argument 252 cache_filename = kwds.get('cache_filename') 268 super(GceAssertionCredentials, self).__init__(scopes, **kwds) 271 def Get(cls, *args, **kwds): argument 273 return cls(*args, **kwds) 462 def __init__(self, scopes, **kwds): argument 467 super(GaeAssertionCredentials, self).__init__(None, **kwds) 470 def Get(cls, *args, **kwds): argument [all …]
|
D | transfer.py | 201 **kwds): argument 202 total_size = kwds.pop('total_size', None) 203 super(Download, self).__init__(stream, **kwds) 221 def FromFile(cls, filename, overwrite=False, auto_transfer=True, **kwds): argument 228 auto_transfer=auto_transfer, **kwds) 231 def FromStream(cls, stream, auto_transfer=True, total_size=None, **kwds): argument 234 **kwds) 238 **kwds): argument 246 download = cls.FromStream(stream, **kwds) 551 **kwds): argument [all …]
|
/external/python/cpython3/Modules/ |
D | _functoolsmodule.c | 469 keyobject_call(keyobject *ko, PyObject *args, PyObject *kwds); 509 keyobject_call(keyobject *ko, PyObject *args, PyObject *kwds) in keyobject_call() argument 515 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:K", kwargs, &object)) in keyobject_call() 566 functools_cmp_to_key(PyObject *self, PyObject *args, PyObject *kwds) in functools_cmp_to_key() argument 572 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:cmp_to_key", kwargs, &cmp)) in functools_cmp_to_key() 748 lru_cache_make_key(PyObject *args, PyObject *kwds, int typed) in lru_cache_make_key() argument 754 if (!typed && !kwds) { in lru_cache_make_key() 768 kwds_size = kwds ? PyDict_GET_SIZE(kwds) : 0; in lru_cache_make_key() 790 for (pos = 0; PyDict_Next(kwds, &pos, &keyword, &value);) { in lru_cache_make_key() 805 for (pos = 0; PyDict_Next(kwds, &pos, &keyword, &value);) { in lru_cache_make_key() [all …]
|
D | _operator.c | 946 itemgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in itemgetter_new() argument 952 if (!_PyArg_NoKeywords("itemgetter", kwds)) in itemgetter_new() 1121 attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in attrgetter_new() argument 1127 if (!_PyArg_NoKeywords("attrgetter", kwds)) in attrgetter_new() 1459 PyObject *kwds; member 1466 methodcaller_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in methodcaller_new() argument 1494 Py_XINCREF(kwds); in methodcaller_new() 1495 mc->kwds = kwds; in methodcaller_new() 1513 Py_XDECREF(mc->kwds); in methodcaller_dealloc() 1521 Py_VISIT(mc->kwds); in methodcaller_traverse() [all …]
|
/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 …]
|