/third_party/python/Lib/tkinter/ |
H A D | tix.py | 108 def tix_configure(self, cnf=None, **kw): 120 if kw: 121 cnf = _cnfmerge((cnf, kw)) 235 def config(self, cnf={}, **kw): 236 self.tk.call('tixForm', self._w, *self._options(cnf, kw)) 290 static_options=None, cnf={}, kw={}): 292 if kw: 293 cnf = _cnfmerge((cnf, kw)) 395 def image_create(self, imgtype, cnf={}, master=None, **kw): 398 if kw an [all...] |
H A D | ttk.py | 96 def _format_elemcreate(etype, script=False, *args, **kw): 97 """Formats args and kw according to the given element factory etype.""" 118 opts = _format_optdict(kw, script) 350 def configure(self, style, query_opt=None, **kw): 354 Each key in kw is an option and each value is either a string or 357 kw[query_opt] = None 358 result = _val_or_dict(self.tk, kw, self._name, "configure", style) 363 def map(self, style, query_opt=None, **kw): 367 Each key in kw is an option and each value should be a list or a 375 result = self.tk.call(self._name, "map", style, *_format_mapdict(kw)) [all...] |
H A D | __init__.py | 715 def tk_setPalette(self, *args, **kw): 727 + _flatten(args) + _flatten(list(kw.items()))) 905 def clipboard_get(self, **kw): 920 if 'type' not in kw and self._windowingsystem == 'x11': 922 kw['type'] = 'UTF8_STRING' 923 return self.tk.call(('clipboard', 'get') + self._options(kw)) 925 del kw['type'] 926 return self.tk.call(('clipboard', 'get') + self._options(kw)) 928 def clipboard_clear(self, **kw): 933 if 'displayof' not in kw [all...] |
H A D | simpledialog.py | 344 def askinteger(title, prompt, **kw): 351 **kw -- see SimpleDialog class 355 d = _QueryInteger(title, prompt, **kw) 366 def askfloat(title, prompt, **kw): 373 **kw -- see SimpleDialog class 377 d = _QueryFloat(title, prompt, **kw) 382 def __init__(self, *args, **kw): 383 if "show" in kw: 384 self.__show = kw["show"] 385 del kw["sho [all...] |
H A D | scrolledtext.py | 21 def __init__(self, master=None, **kw): 26 kw.update({'yscrollcommand': self.vbar.set}) 27 Text.__init__(self, self.frame, **kw)
|
/third_party/python/Lib/json/ |
H A D | __init__.py | 122 default=None, sort_keys=False, **kw): 168 default is None and not sort_keys and not kw): 176 default=default, sort_keys=sort_keys, **kw).iterencode(obj) 185 default=None, sort_keys=False, **kw): 230 default is None and not sort_keys and not kw): 238 **kw).encode(obj) 275 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): 296 parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) 300 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): 345 parse_constant is None and object_pairs_hook is None and not kw) [all...] |
/third_party/python/Lib/email/ |
H A D | headerregistry.py | 313 def init(self, *args, **kw): 314 self._datetime = kw.pop('datetime') 315 super().init(*args, **kw) 365 def init(self, *args, **kw): 366 self._groups = tuple(kw.pop('groups')) 368 super().init(*args, **kw) 420 def init(self, *args, **kw): 421 self._version = kw.pop('version') 422 self._major = kw.pop('major') 423 self._minor = kw [all...] |
H A D | message.py | 1120 def get_content(self, *args, content_manager=None, **kw): 1123 return content_manager.get_content(self, *args, **kw) 1125 def set_content(self, *args, content_manager=None, **kw): 1128 content_manager.set_content(self, *args, **kw) 1166 def _add_multipart(self, _subtype, *args, _disp=None, **kw): 1171 part.set_content(*args, **kw) 1176 def add_related(self, *args, **kw): 1177 self._add_multipart('related', *args, _disp='inline', **kw) 1179 def add_alternative(self, *args, **kw): 1180 self._add_multipart('alternative', *args, **kw) [all...] |
H A D | contentmanager.py | 16 def get_content(self, msg, *args, **kw): 19 return self.get_handlers[content_type](msg, *args, **kw) 22 return self.get_handlers[maintype](msg, *args, **kw) 24 return self.get_handlers[''](msg, *args, **kw) 30 def set_content(self, msg, obj, *args, **kw): 37 handler(msg, obj, *args, **kw)
|
/third_party/python/Modules/ |
H A D | _functoolsmodule.c | 40 PyObject *kw; member 62 partial_new(PyTypeObject *type, PyObject *args, PyObject *kw) in partial_new() argument 78 // same memory layout (fn, args and kw members). in partial_new() 83 pkw = part->kw; in partial_new() 122 if (kw == NULL) { in partial_new() 123 pto->kw = PyDict_New(); in partial_new() 125 else if (Py_REFCNT(kw) == 1) { in partial_new() 126 Py_INCREF(kw); in partial_new() 127 pto->kw = kw; in partial_new() 422 PyObject *fn, *fnargs, *kw, *dict; partial_setstate() local 1157 lru_cache_new(PyTypeObject *type, PyObject *args, PyObject *kw) lru_cache_new() argument [all...] |
H A D | xxsubtype.c | 47 spamlist_specialmeth(PyObject *self, PyObject *args, PyObject *kw) in spamlist_specialmeth() argument 54 if (kw == NULL) in spamlist_specialmeth() 55 kw = Py_None; in spamlist_specialmeth() 60 Py_INCREF(kw); in spamlist_specialmeth() 61 PyTuple_SET_ITEM(result, 2, kw); in spamlist_specialmeth() 75 PyDoc_STR("classmeth(*args, **kw)")}, 78 PyDoc_STR("staticmeth(*args, **kw)")},
|
/third_party/python/Lib/test/test_email/ |
H A D | test_parser.py | 91 def message_from_file(s, *args, **kw): 93 return email.message_from_file(f, *args, **kw) 98 def message_from_bytes(s, *args, **kw): 99 return email.message_from_bytes(s.encode(), *args, **kw) 101 def message_from_binary_file(s, *args, **kw): 103 return email.message_from_binary_file(f, *args, **kw)
|
H A D | test_message.py | 500 def get_content(self, msg, *args, **kw): 501 return msg, args, kw 502 def set_content(self, msg, *args, **kw): 505 self.kw = kw 511 msg, args, kw = m.get_content('foo', content_manager=cm, bar=1, k=2) 514 self.assertEqual(kw, dict(bar=1, k=2)) 520 msg, args, kw = m.get_content('foo', bar=1, k=2) 523 self.assertEqual(kw, dict(bar=1, k=2)) 531 self.assertEqual(cm.kw, {}) [all...] |
/third_party/python/Lib/ |
H A D | _threading_local.py | 59 ... def __init__(self, /, **kw): 60 ... self.__dict__.update(kw) 197 args, kw = impl.localargs 198 self.__init__(*args, **kw) 207 def __new__(cls, /, *args, **kw): 208 if (args or kw) and (cls.__init__ is object.__init__): 212 impl.localargs = (args, kw)
|
/third_party/python/Lib/test/ |
H A D | test_dict_version.py | 24 def check_version_changed(self, mydict, method, *args, **kw): 25 result = method(*args, **kw) 29 def check_version_dont_change(self, mydict, method, *args, **kw): 33 result = method(*args, **kw) 40 def new_dict(self, *args, **kw): 41 d = self.type2test(*args, **kw)
|
H A D | test_webbrowser.py | 29 def _test(self, meth, *, args=[URL], kw={}, options, arguments): 43 getattr(browser, meth)(*args, **kw) 83 self._test('open', kw=dict(autoraise=False), 108 self._test('open', kw=dict(autoraise=False), 133 self._test('open', kw=dict(autoraise=False), 158 self._test('open', kw=dict(autoraise=False), 183 self._test('open', kw=dict(autoraise=False),
|
H A D | test_utf8_mode.py | 30 def get_output(self, *args, failure=False, **kw): 31 kw = dict(self.DEFAULT_ENV, **kw) 33 out = assert_python_failure(*args, **kw) 36 out = assert_python_ok(*args, **kw) 220 def check(utf8_opt, expected, **kw): 221 out = self.get_output('-X', utf8_opt, '-c', code, arg, **kw)
|
H A D | test_userdict.py | 145 for kw in 'self', 'other', 'iterable': 146 self.assertEqual(list(collections.UserDict(**{kw: 42}).items()), 147 [(kw, 42)]) 159 for kw in 'self', 'dict', 'other', 'iterable': 161 d.update(**{kw: 42}) 162 self.assertEqual(list(d.items()), [(kw, 42)])
|
H A D | test_wsgiref.py | 315 def checkCrossDefault(self,key,value,**kw): 316 util.setup_testing_defaults(kw) 317 self.assertEqual(kw[key],value) 319 def checkAppURI(self,uri,**kw): 320 util.setup_testing_defaults(kw) 321 self.assertEqual(util.application_uri(kw),uri) 323 def checkReqURI(self,uri,query=1,**kw): 324 util.setup_testing_defaults(kw) 325 self.assertEqual(util.request_uri(kw,query),uri) 514 def __init__(self,**kw) [all...] |
/third_party/python/Lib/ctypes/ |
H A D | __init__.py | 72 def CFUNCTYPE(restype, *argtypes, **kw): 89 if kw.pop("use_errno", False): 91 if kw.pop("use_last_error", False): 93 if kw: 94 raise ValueError("unexpected keyword argument(s) %s" % kw.keys()) 113 def WINFUNCTYPE(restype, *argtypes, **kw): 116 if kw.pop("use_errno", False): 118 if kw.pop("use_last_error", False): 120 if kw: 121 raise ValueError("unexpected keyword argument(s) %s" % kw [all...] |
/third_party/python/Tools/c-analyzer/c_parser/preprocessor/ |
H A D | common.py | 38 kw = dict(locals()) 39 kw.pop('argv') 40 kw.pop('kwargs') 41 kwargs.update(kw)
|
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | __init__.py | 291 def add_argument(self, *args, **kw): 303 env_name = kw.pop("env_name", None) 304 if "dest" in kw and kw.pop("regenerate", True): 305 dest = kw["dest"] 309 type = kw.get("type") 311 kw["type"] = str 314 "action": kw.get("action"), 320 argparse.ArgumentParser.add_argument(self, *args, **kw)
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | __init__.py | 294 def add_argument(self, *args, **kw): 306 env_name = kw.pop("env_name", None) 307 if "dest" in kw and kw.pop("regenerate", True): 308 dest = kw["dest"] 312 type = kw.get("type") 314 kw["type"] = str 317 "action": kw.get("action"), 323 argparse.ArgumentParser.add_argument(self, *args, **kw)
|
/third_party/python/Tools/scripts/ |
H A D | pindent.py | 110 r'^(?:\s|\\\n)*(?P<kw>[a-z]+)' 114 r'^(?:\s|\\\n)*#?\s*end\s+(?P<kw>[a-z]+)' 171 kw = 'end' 172 kw2 = m.group('kw') 183 kw = m.group('kw') 184 if kw in start: 186 stack.append((kw, kw)) 189 if kw i [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | support.py | 92 def create_dist(self, pkg_name='foo', **kw): 105 dist = Distribution(attrs=kw) 114 for kw, val in kwargs.items(): 115 setattr(self, kw, val)
|