Add advice on choosing between DictMixin and MutableMapping

This commit is contained in:
Raymond Hettinger 2008-02-08 23:57:06 +00:00
parent d53f1c4d41
commit 7e33663ec4
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ provide the following attribute:
Since the mixin has no knowledge of the subclass constructor, it does not define Since the mixin has no knowledge of the subclass constructor, it does not define
:meth:`__init__` or :meth:`copy`. :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 :mod:`UserList` --- Class wrapper for list objects
================================================== ==================================================