Home
last modified time | relevance | path

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

12

/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
459 return UserDict.UserDict()
595 return UserDict.UserDict()
598 self.assertIsInstance(ud, UserDict.UserDict)
Dtest_dict.py4 import UserDict, random, string
227 return UserDict.UserDict()
230 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):
Dtest_builtin.py10 import sys, cStringIO, random, UserDict
425 eval('[locals() for i in (2,3)]', g, UserDict.UserDict())
1779 type('A', (), UserDict.UserDict())
Dtest_inspect.py9 from UserDict import UserDict
Dtest_support.py19 import UserDict
990 class EnvironmentVarGuard(UserDict.DictMixin):
/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,
Dshelve.rst111 A subclass of :class:`UserDict.DictMixin` which stores pickled values in the
/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
35 class WeakValueDictionary(UserDict.UserDict):
66 UserDict.UserDict.__init__(self, *args, **kw)
286 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):
DConfigParser.py556 import UserDict as _UserDict
/external/libmojo/third_party/jinja2/
D_compat.py115 import UserDict
116 mapping_types = (UserDict.UserDict, UserDict.DictMixin, dict)
Dsandbox.py55 from UserDict import UserDict, DictMixin
57 _mutable_mapping_types += (UserDict, DictMixin)
/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
Ddbshelve.py72 from UserDict import DictMixin as MutableMapping
Ddbobj.py33 from UserDict import DictMixin as MutableMapping
/external/python/cpython2/Doc/whatsnew/
D2.1.rst448 tricky and set it to a :class:`~UserDict.UserDict` instance, or any other random object

12