Home
last modified time | relevance | path

Searched refs:UserDict (Results 1 – 25 of 56) sorted by relevance

123

/external/python/cpython2/Lib/test/
Dtest_userdict.py4 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 …]
Dmapping_tests.py3 import UserDict
460 return UserDict.UserDict()
596 return UserDict.UserDict()
599 self.assertIsInstance(ud, UserDict.UserDict)
Dtest_dict.py4 import UserDict, random, string
228 return UserDict.UserDict()
231 self.assertIsInstance(ud, UserDict.UserDict)
Dtest_funcattrs.py258 from UserDict import UserDict
259 d = UserDict({'known_attr': 7})
Dtest_cfgparser.py5 import UserDict
10 class SortedDict(UserDict.UserDict):
/external/python/cpython3/Lib/test/
Dtest_userdict.py15 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 …]
Dmapping_tests.py442 return collections.UserDict()
445 self.assertIsInstance(ud, collections.UserDict)
570 return collections.UserDict()
573 self.assertIsInstance(ud, collections.UserDict)
Dtest_funcattrs.py273 from collections import UserDict
274 d = UserDict({'known_attr': 7})
Dtest_pprint.py948 d = collections.UserDict()
951 d = collections.UserDict(zip(words, itertools.count()))
/external/python/cpython2/Doc/library/
Duserdict.rst1 :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 …]
Ddumbdbm.rst84 In addition to the methods provided by the :class:`UserDict.DictMixin` class,
/external/python/cpython2/Lib/
DUserDict.py3 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):
Dweakref.py12 import UserDict
36 class WeakValueDictionary(UserDict.UserDict):
69 UserDict.UserDict.__init__(self, *args, **kw)
319 class WeakKeyDictionary(UserDict.UserDict):
Dos.py400 import UserDict
415 class _Environ(UserDict.IterableUserDict):
417 UserDict.UserDict.__init__(self)
468 class _Environ(UserDict.IterableUserDict):
470 UserDict.UserDict.__init__(self)
Dshelve.py71 import UserDict
75 class _ClosedDict(UserDict.DictMixin):
85 class Shelf(UserDict.DictMixin):
Ddumbdbm.py27 import UserDict
35 class _Database(UserDict.DictMixin):
Dcgi.py40 import UserDict
783 class FormContentDict(UserDict.UserDict):
/external/libchrome/third_party/jinja2/
Dsandbox.py67 from UserDict import UserDict, DictMixin
69 _mutable_mapping_types += (UserDict, DictMixin)
/external/python/cpython3/Lib/idlelib/
DTODO.txt42 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/
DTODO.txt42 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/bsddb/
D__init__.py88 import UserDict
89 MutableMapping = UserDict.DictMixin
/external/scapy/
DCONTRIBUTING.md127 - UserDict should be imported via `six.UserDict`
/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_d_m_x.py17 from UserDict import DictMixin as Mapping
/external/fonttools/Lib/fontTools/misc/
DmacRes.py10 from UserDict import DictMixin as MutableMapping
/external/python/cpython3/Lib/collections/
D__init__.py995 class UserDict(_collections_abc.MutableMapping): class
1038 if self.__class__ is UserDict:
1039 return UserDict(self.data.copy())

123