From: Raymond Hettinger Date: Fri, 8 Feb 2008 23:57:06 +0000 (+0000) Subject: Add advice on choosing between DictMixin and MutableMapping X-Git-Tag: v2.6a1~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e33663ec439c603b1f23a8ebe255feed684c19f;p=thirdparty%2FPython%2Fcpython.git Add advice on choosing between DictMixin and MutableMapping --- diff --git a/Doc/library/userdict.rst b/Doc/library/userdict.rst index 11d46ed109df..a97732d03cc7 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 ==================================================