Searched refs:UserDict (Results 1 – 25 of 57) sorted by relevance
123
/external/python/cpython2/Lib/test/ |
D | test_userdict.py | 4 import UserDict 15 type2test = UserDict.IterableUserDict 19 u = UserDict.UserDict() 20 u0 = UserDict.UserDict(d0) 21 u1 = UserDict.UserDict(d1) 22 u2 = UserDict.IterableUserDict(d2) 24 uu = UserDict.UserDict(u) 25 uu0 = UserDict.UserDict(u0) 26 uu1 = UserDict.UserDict(u1) 27 uu2 = UserDict.UserDict(u2) [all …]
|
D | mapping_tests.py | 3 import UserDict 460 return UserDict.UserDict() 596 return UserDict.UserDict() 599 self.assertIsInstance(ud, UserDict.UserDict)
|
D | test_dict.py | 4 import UserDict, random, string 228 return UserDict.UserDict() 231 self.assertIsInstance(ud, UserDict.UserDict)
|
D | test_funcattrs.py | 258 from UserDict import UserDict 259 d = UserDict({'known_attr': 7})
|
D | test_cfgparser.py | 5 import UserDict 10 class SortedDict(UserDict.UserDict):
|
/external/python/cpython3/Lib/test/ |
D | test_userdict.py | 15 type2test = collections.UserDict 19 u = collections.UserDict() 20 u0 = collections.UserDict(d0) 21 u1 = collections.UserDict(d1) 22 u2 = collections.UserDict(d2) 24 uu = collections.UserDict(u) 25 uu0 = collections.UserDict(u0) 26 uu1 = collections.UserDict(u1) 27 uu2 = collections.UserDict(u2) 30 self.assertEqual(collections.UserDict(one=1, two=2), d2) [all …]
|
D | mapping_tests.py | 442 return collections.UserDict() 445 self.assertIsInstance(ud, collections.UserDict) 570 return collections.UserDict() 573 self.assertIsInstance(ud, collections.UserDict)
|
D | test_funcattrs.py | 282 from collections import UserDict 283 d = UserDict({'known_attr': 7})
|
D | test_genericalias.py | 6 defaultdict, deque, OrderedDict, Counter, UserDict, UserList 55 OrderedDict, Counter, UserDict, UserList,
|
D | test_collections.py | 17 from collections import UserDict, UserString, UserList 61 self._superset_test(UserDict, dict) 69 obj = UserDict() 199 class DictWithGetItem(UserDict): 202 UserDict.__init__(self, *args, **kwds) 205 UserDict.__getitem__(self, item) 1810 mymap = UserDict() 1817 mymap = UserDict() 1825 mymap = UserDict()
|
/external/python/cpython2/Doc/library/ |
D | userdict.rst | 1 :mod:`UserDict` --- Class wrapper for dictionary objects 4 .. module:: UserDict 8 **Source code:** :source:`Lib/UserDict.py` 17 This module also defines a class, :class:`~UserDict.UserDict`, that acts as a wrapper 21 :class:`dict`, the :class:`~UserDict.UserDict` class was used to create dictionary-like 25 The :mod:`UserDict` module defines the :class:`~UserDict.UserDict` class and 29 .. class:: UserDict([initialdata]) 33 :class:`~UserDict.UserDict` instances. If *initialdata* is provided, :attr:`data` is 39 For backward compatibility, instances of :class:`~UserDict.UserDict` are not iterable. 44 Subclass of :class:`~UserDict.UserDict` that supports direct iteration (e.g. ``for key in [all …]
|
D | dumbdbm.rst | 84 In addition to the methods provided by the :class:`UserDict.DictMixin` class,
|
/external/python/cpython2/Lib/ |
D | UserDict.py | 3 class UserDict: class 29 if isinstance(dict, UserDict): 45 if self.__class__ is UserDict: 46 return UserDict(self.data.copy()) 82 elif isinstance(dict, UserDict): 112 class IterableUserDict(UserDict):
|
D | weakref.py | 12 import UserDict 36 class WeakValueDictionary(UserDict.UserDict): 69 UserDict.UserDict.__init__(self, *args, **kw) 319 class WeakKeyDictionary(UserDict.UserDict):
|
D | os.py | 400 import UserDict 415 class _Environ(UserDict.IterableUserDict): 417 UserDict.UserDict.__init__(self) 468 class _Environ(UserDict.IterableUserDict): 470 UserDict.UserDict.__init__(self)
|
D | shelve.py | 71 import UserDict 75 class _ClosedDict(UserDict.DictMixin): 85 class Shelf(UserDict.DictMixin):
|
D | dumbdbm.py | 27 import UserDict 35 class _Database(UserDict.DictMixin):
|
D | cgi.py | 40 import UserDict 783 class FormContentDict(UserDict.UserDict):
|
/external/libchrome/third_party/jinja2/ |
D | sandbox.py | 67 from UserDict import UserDict, DictMixin 69 _mutable_mapping_types += (UserDict, DictMixin)
|
/external/python/cpython3/Lib/idlelib/ |
D | TODO.txt | 42 In other words, select "UserDict.UserDict", hit some magic key and 43 it loads up UserDict.py and finds the first def or class for UserDict.
|
/external/python/cpython2/Lib/idlelib/ |
D | TODO.txt | 42 In other words, select "UserDict.UserDict", hit some magic key and 43 it loads up UserDict.py and finds the first def or class for UserDict.
|
/external/python/cpython3/Lib/collections/ |
D | __init__.py | 1040 class UserDict(_collections_abc.MutableMapping): class 1078 if isinstance(other, UserDict): 1085 if isinstance(other, UserDict): 1092 if isinstance(other, UserDict): 1106 if self.__class__ is UserDict: 1107 return UserDict(self.data.copy())
|
/external/python/cpython2/Lib/bsddb/ |
D | __init__.py | 88 import UserDict 89 MutableMapping = UserDict.DictMixin
|
/external/python/asn1crypto/asn1crypto/ |
D | _ordereddict.py | 31 from UserDict import DictMixin
|
/external/scapy/ |
D | CONTRIBUTING.md | 127 - UserDict should be imported via `six.UserDict`
|
123