diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-29 21:28:55 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-29 21:28:55 (GMT) |
commit | 6983ff74758ddd2e9865c515e5d8671dbc6352c5 (patch) | |
tree | 021e61bd2100f189ed0b2e2ca7494faeb3157002 /Doc/library/userdict.rst | |
parent | ef3dab28f25c6725c789704ef140e23071ceb923 (diff) | |
download | cpython-6983ff74758ddd2e9865c515e5d8671dbc6352c5.zip cpython-6983ff74758ddd2e9865c515e5d8671dbc6352c5.tar.gz cpython-6983ff74758ddd2e9865c515e5d8671dbc6352c5.tar.bz2 |
Note that UserList and UserString were moved to 'collections' in 3.0.
Diffstat (limited to 'Doc/library/userdict.rst')
-rw-r--r-- | Doc/library/userdict.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/userdict.rst b/Doc/library/userdict.rst index b0ef645..9ddfde5 100644 --- a/Doc/library/userdict.rst +++ b/Doc/library/userdict.rst @@ -100,6 +100,12 @@ The :mod:`UserList` module defines the :class:`UserList` class: defaulting to the empty list ``[]``. *list* can be any iterable, e.g. a real Python list or a :class:`UserList` object. + .. note:: + The :class:`UserList` class has been moved to the :mod:`collections` + module in Python 3.0. The :term:`2to3` tool will automatically adapt + imports when converting your sources to 3.0. + + In addition to supporting the methods and operations of mutable sequences (see section :ref:`typesseq`), :class:`UserList` instances provide the following attribute: @@ -167,6 +173,12 @@ The :mod:`UserString` module defines the following classes: :class:`UserString` (or a subclass) or an arbitrary sequence which can be converted into a string using the built-in :func:`str` function. + .. note:: + The :class:`UserString` class has been moved to the :mod:`collections` + module in Python 3.0. The :term:`2to3` tool will automatically adapt + imports when converting your sources to 3.0. + + .. class:: MutableString([sequence]) |