On Mon, Nov 03, 2003 at 09:42:31AM -0600, Skip Montanaro wrote: > > greg> import UserDict > greg> class _iter_mixin(UserDict.DictMixin): > greg> def __iter__(self): > greg> try: > ... > > Should _iter_mixin inherit from dict, or is there a backward compatibility > issue? Simply changing UserDict.DictMixin to dict doesn't work. In order to act like a dictionary it depends on DictMixin's multi-level implementation of all of the dict methods using the lower-level primitives.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4