[issue1967] Backport dictviews to 2.6

Thomas Wouters report at bugs.python.org
Thu Jan 31 02:50:59 CET 2008


Thomas Wouters added the comment:

After talking to Guido, got rid of the future import magic in favour of
just providing 'viewkeys', 'viewitems' and 'viewvalues' methods of
dicts. This makes efficient 2.6-and-3.0 dict-using code possibly by
making 2to3 translate the view-methods directly to keys/values/items in
3.0, and not wrapping everything in list().

Added file: http://bugs.python.org/file9336/dictviews_backport.diff

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


More information about the Python-bugs-list mailing list