Changeset 391 for python/trunk/Doc/library/userdict.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/userdict.rst
r2 r391 1 2 1 :mod:`UserDict` --- Class wrapper for dictionary objects 3 2 ======================================================== … … 6 5 :synopsis: Class wrapper for dictionary objects. 7 6 7 8 **Source code:** :source:`Lib/UserDict.py` 9 10 -------------- 8 11 9 12 The module defines a mixin, :class:`DictMixin`, defining all dictionary methods … … 81 84 .. note:: 82 85 83 This module is available for backward compatibility only. If you are writing 84 code that does not need to work with versions of Python earlier than Python 2.2, 85 please consider subclassing directly from the built-in :class:`list` type. 86 When Python 2.2 was released, many of the use cases for this class were 87 subsumed by the ability to subclass :class:`list` directly. However, a 88 handful of use cases remain. 89 90 This module provides a list-interface around an underlying data store. By 91 default, that data store is a :class:`list`; however, it can be used to wrap 92 a list-like interface around other objects (such as persistent storage). 93 94 In addition, this class can be mixed-in with built-in classes using multiple 95 inheritance. This can sometimes be useful. For example, you can inherit 96 from :class:`UserList` and :class:`str` at the same time. That would not be 97 possible with both a real :class:`list` and a real :class:`str`. 86 98 87 99 This module defines a class that acts as a wrapper around list objects. It is a … … 103 115 .. note:: 104 116 The :class:`UserList` class has been moved to the :mod:`collections` 105 module in Python 3. 0.The :term:`2to3` tool will automatically adapt106 imports when converting your sources to 3.0.117 module in Python 3. The :term:`2to3` tool will automatically adapt 118 imports when converting your sources to Python 3. 107 119 108 120 … … 176 188 .. note:: 177 189 The :class:`UserString` class has been moved to the :mod:`collections` 178 module in Python 3. 0.The :term:`2to3` tool will automatically adapt179 imports when converting your sources to 3.0.190 module in Python 3. The :term:`2to3` tool will automatically adapt 191 imports when converting your sources to Python 3. 180 192 181 193 … … 192 204 193 205 .. deprecated:: 2.6 194 The :class:`MutableString` class has been removed in Python 3. 0.206 The :class:`MutableString` class has been removed in Python 3. 195 207 196 208 In addition to supporting the methods and operations of string and Unicode
Note:
See TracChangeset
for help on using the changeset viewer.