[Python-checkins] r63800 - python/trunk/Doc/library/userdict.rst

brett.cannon python-checkins at python.org
Thu May 29 23:28:55 CEST 2008


Author: brett.cannon
Date: Thu May 29 23:28:55 2008
New Revision: 63800

Log:
Note that UserList and UserString were moved to 'collections' in 3.0.

Modified:
   python/trunk/Doc/library/userdict.rst

Modified: python/trunk/Doc/library/userdict.rst
==============================================================================
--- python/trunk/Doc/library/userdict.rst	(original)
+++ python/trunk/Doc/library/userdict.rst	Thu May 29 23:28:55 2008
@@ -100,6 +100,12 @@
    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 @@
    :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])
 


More information about the Python-checkins mailing list