Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6983ff74
Commit
6983ff74
authored
May 29, 2008
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note that UserList and UserString were moved to 'collections' in 3.0.
parent
ef3dab28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Doc/library/userdict.rst
Doc/library/userdict.rst
+12
-0
No files found.
Doc/library/userdict.rst
View file @
6983ff74
...
...
@@ -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])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment