← Back to DAGDA | Support | Source: https://bugs.python.org/issue1166582

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IterableUserDict not in docs
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, kjohnson
Priority: normal Keywords:

Created on 2005-03-19 18:13 by kjohnson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg24703 - (view) Author: Kent Johnson (kjohnson) * Date: 2005-03-19 18:13
There is no mention of UserDict.IterableUserDict in the
docs (3.7 UserDict). Here is a suggested rewrite:

class UserDict(     [initialdata])
    Class that simulates a dictionary. The instance's
contents are kept in a regular dictionary, which is
accessible via the data attribute of UserDict
instances. If initialdata is provided, data is
initialized with its contents; note that a reference to
initialdata will not be kept, allowing it be used for
other purposes. Note: For backward compatibility,
instances of UserDict are not iterable.

class IterableUserDict( [initialdata])
    Subclass of UserDict that supports direct iteration
(e.g. "for key in myDict").

In addition to supporting the methods and operations of
mappings (see section 2.3.8), UserDict and
IterableUserDict instances provide the following attribute:
msg24704 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-25 21:04
Logged In: YES 
user_id=1188172

Thanks for the report; fixed as Doc/lib/libuserdict.tex
r1.27, r1.24.4.3.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41718
2005-03-19 18:13:36kjohnsoncreate