Searched refs:mydict (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Lib/test/ |
D | test_dict_version.py | 19 def check_version_unique(self, mydict): argument 20 version = _testcapi.dict_get_version(mydict) 24 def check_version_changed(self, mydict, method, *args, **kw): argument 26 self.check_version_unique(mydict) 29 def check_version_dont_change(self, mydict, method, *args, **kw): argument 30 version1 = _testcapi.dict_get_version(mydict) 35 version2 = _testcapi.dict_get_version(mydict)
|
D | mapping_tests.py | 440 class mydict(self.type2test): class 443 ud = mydict.fromkeys('ab') 568 class mydict(self.type2test): class 571 ud = mydict.fromkeys('ab')
|
D | test_dict.py | 283 class mydict(dict): class 286 ud = mydict.fromkeys('ab') 566 mydict, key = NastyKey.mutate_dict 568 del mydict[key]
|
D | test_descr.py | 3620 class mydict(dict): class 3622 d = mydict()
|
/third_party/python/Doc/faq/ |
D | design.rst | 240 value = mydict[key] 242 mydict[key] = getvalue(key) 243 value = mydict[key] 248 if key in mydict: 249 value = mydict[key] 251 value = mydict[key] = getvalue(key) 480 mydict = {[1, 2]: '12'} 481 print(mydict[[1, 2]]) 555 for key in sorted(mydict): 556 ... # do whatever with mydict[key]... [all …]
|
D | programming.rst | 335 def foo(mydict={}): # Danger: shared reference to one dict for all calls 337 mydict[key] = value 338 return mydict 340 The first time you call this function, ``mydict`` contains a single item. The 341 second time, ``mydict`` contains two items because when ``foo()`` begins 342 executing, ``mydict`` starts out with an item already in it. 358 def foo(mydict={}): 363 def foo(mydict=None): 364 if mydict is None: 365 mydict = {} # create a new dict for local namespace
|
/third_party/python/Python/ |
D | errors.c | 1112 PyObject *mydict = NULL; in PyErr_NewException() local 1126 dict = mydict = PyDict_New(); in PyErr_NewException() 1157 Py_XDECREF(mydict); in PyErr_NewException() 1170 PyObject *mydict = NULL; /* points to the dict only if we create it */ in PyErr_NewExceptionWithDoc() local 1174 dict = mydict = PyDict_New(); in PyErr_NewExceptionWithDoc() 1192 Py_XDECREF(mydict); in PyErr_NewExceptionWithDoc()
|
/third_party/boost/libs/python/doc/reference/ |
D | concepts.qbk | 128 >>> class mydict(dict): 132 …mydict` is also an instance of `dict`, when used as an argument to a wrapped C++ function, [link o…
|
/third_party/python/Modules/_ctypes/ |
D | _ctypes.c | 2866 PyObject *dict, *mydict; in PyCData_setstate() local 2876 mydict = PyObject_GetAttrString(myself, "__dict__"); in PyCData_setstate() 2877 if (mydict == NULL) { in PyCData_setstate() 2880 if (!PyDict_Check(mydict)) { in PyCData_setstate() 2883 Py_TYPE(myself)->tp_name, Py_TYPE(mydict)->tp_name); in PyCData_setstate() 2884 Py_DECREF(mydict); in PyCData_setstate() 2887 res = PyDict_Update(mydict, dict); in PyCData_setstate() 2888 Py_DECREF(mydict); in PyCData_setstate()
|
/third_party/python/Doc/whatsnew/ |
D | 2.4.rst | 956 functionals: ``map(mydict.__getitem__, keylist)``. (Contributed by Raymond
|