]> granicus.if.org Git - python/commit
Remove the __iter__ method from the UserDict class -- it can silently
authorGuido van Rossum <guido@python.org>
Tue, 7 Aug 2001 17:40:42 +0000 (17:40 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 7 Aug 2001 17:40:42 +0000 (17:40 +0000)
commit2050b65e84c01651f1b37b7ab058ec958fd14a53
treea569ec4a3718c2e41c0cfced8cdda0e57f85c439
parent528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c
Remove the __iter__ method from the UserDict class -- it can silently
break old code (in extreme cases).  See SF bug #448153.

Add a new subclass IterableUserDict that has the __iter__ method.

Note that for new projects, unless backwards compatibility with
pre-2.2 Python is required, subclassing 'dictionary' is recommended;
UserDict might become deprecated.
Lib/UserDict.py