[issue2876] Write UserDict fixer for 2to3

Raymond Hettinger report at bugs.python.org
Mon May 26 05:50:31 CEST 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

UserDict.UserDict is gone.
UserDict.IterableUserDict class is now collections.UserDict.
UserDict.Mixin is now collections.MutableMapping.

The new classes comform to the new dict API, so they fixer needs to 
also make same method adaptatations as for dicts (i.e. d.keys() --> list
(d.keys() and d.has_key --> d.__contains__).

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2876>
__________________________________


More information about the Python-bugs-list mailing list