Searched refs:UserDict (Results 1 – 25 of 31) sorted by relevance
12
/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 459 return UserDict.UserDict() 595 return UserDict.UserDict() 598 self.assertIsInstance(ud, UserDict.UserDict)
|
D | test_dict.py | 4 import UserDict, random, string 227 return UserDict.UserDict() 230 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):
|
D | test_builtin.py | 10 import sys, cStringIO, random, UserDict 425 eval('[locals() for i in (2,3)]', g, UserDict.UserDict()) 1779 type('A', (), UserDict.UserDict())
|
D | test_inspect.py | 9 from UserDict import UserDict
|
D | test_support.py | 19 import UserDict 990 class EnvironmentVarGuard(UserDict.DictMixin):
|
/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,
|
D | shelve.rst | 111 A subclass of :class:`UserDict.DictMixin` which stores pickled values in the
|
/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 35 class WeakValueDictionary(UserDict.UserDict): 66 UserDict.UserDict.__init__(self, *args, **kw) 286 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):
|
D | ConfigParser.py | 556 import UserDict as _UserDict
|
/external/libmojo/third_party/jinja2/ |
D | _compat.py | 115 import UserDict 116 mapping_types = (UserDict.UserDict, UserDict.DictMixin, dict)
|
D | sandbox.py | 55 from UserDict import UserDict, DictMixin 57 _mutable_mapping_types += (UserDict, DictMixin)
|
/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/cpython2/Lib/bsddb/ |
D | __init__.py | 88 import UserDict 89 MutableMapping = UserDict.DictMixin
|
D | dbshelve.py | 72 from UserDict import DictMixin as MutableMapping
|
D | dbobj.py | 33 from UserDict import DictMixin as MutableMapping
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.1.rst | 448 tricky and set it to a :class:`~UserDict.UserDict` instance, or any other random object
|
12