diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-08 23:57:06 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-08 23:57:06 (GMT) |
commit | 7e33663ec439c603b1f23a8ebe255feed684c19f (patch) | |
tree | 0b0aaec087505476b616227f1899bddd7d0eaab0 /Doc | |
parent | d53f1c4d41e863c8a7f0653ea7af04dc0b4faa84 (diff) | |
download | cpython-7e33663ec439c603b1f23a8ebe255feed684c19f.zip cpython-7e33663ec439c603b1f23a8ebe255feed684c19f.tar.gz cpython-7e33663ec439c603b1f23a8ebe255feed684c19f.tar.bz2 |
Add advice on choosing between DictMixin and MutableMapping
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/userdict.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/userdict.rst b/Doc/library/userdict.rst index 11d46ed..a97732d 100644 --- a/Doc/library/userdict.rst +++ b/Doc/library/userdict.rst @@ -68,6 +68,8 @@ provide the following attribute: Since the mixin has no knowledge of the subclass constructor, it does not define :meth:`__init__` or :meth:`copy`. + Starting with Python version 2.6, it is recommended to use + :class:`collections.MutableMapping` instead of :class:`DictMixin`. :mod:`UserList` --- Class wrapper for list objects ================================================== |