On Mon, Jan 15, 2007 at 11:40:22PM +0100, "Martin v. L??wis" wrote: > > Do I just suffer from having an overactive imagination? Are all of > > these implementation strategies impossible for some reason, and there > > are no others? > > Yes, and yes. What about turning all references to obj.items into the equivalent bytecode for this: if isinstance(obj, dict): # XXX should this be 'type(obj) is dict'? if <2.x behaviour>: _temp = obj.items elif <3.x behaviour>: _temp = obj.iteritems else: _temp = obj.items Ugly; very ugly. --amk
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