Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/userdict.rst

    r2 r391  
    1 
    21:mod:`UserDict` --- Class wrapper for dictionary objects
    32========================================================
     
    65   :synopsis: Class wrapper for dictionary objects.
    76
     7
     8**Source code:** :source:`Lib/UserDict.py`
     9
     10--------------
    811
    912The module defines a mixin,  :class:`DictMixin`, defining all dictionary methods
     
    8184.. note::
    8285
    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`.
    8698
    8799This module defines a class that acts as a wrapper around list objects.  It is a
     
    103115   .. note::
    104116      The :class:`UserList` class has been moved to the :mod:`collections`
    105       module in Python 3.0. The :term:`2to3` tool will automatically adapt
    106       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.
    107119
    108120
     
    176188   .. note::
    177189      The :class:`UserString` class has been moved to the :mod:`collections`
    178       module in Python 3.0. The :term:`2to3` tool will automatically adapt
    179       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.
    180192
    181193
     
    192204
    193205   .. 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.
    195207
    196208In addition to supporting the methods and operations of string and Unicode
Note: See TracChangeset for help on using the changeset viewer.