From 7e33663ec439c603b1f23a8ebe255feed684c19f Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 8 Feb 2008 23:57:06 +0000 Subject: [PATCH] Add advice on choosing between DictMixin and MutableMapping --- Doc/library/userdict.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/userdict.rst b/Doc/library/userdict.rst index 11d46ed109..a97732d03c 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 ================================================== -- 2.40.0