This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author twouters
Recipients twouters
Date 2008-01-29.22:39:03
SpamBayes Score 0.18263705
Marked as misclassified No
Message-id <1201646345.65.0.388341439945.issue1967@psf.upfronthosting.co.za>
In-reply-to
Content
Patch to backport dictviews to trunk. Consists of some trickery:

 - new 'viewkeys', 'viewvalues' and 'viewitems' methods of dicts,
returning exactly what 'keys', 'values' and 'items' return in 3.0: three
new types defined in dictobject.c
 - a future import (dictviews) that changes which opcodes are generated
for (some) attribute access
 - special opcodes for getting and setting 'keys', 'values' and 'items'
attributes from an object. These opcodes do nothing special unless a
future import is in effect in the calling code block *and* the type they
are called on is a dict subclass, in which case they translate 'keys',
'values' and 'items' to 'viewkeys', 'viewvalues' and 'viewitems'.
 - similar specialcasing in getattr() and setattr()
History
Date User Action Args
2008-01-29 22:39:06twouterssetspambayes_score: 0.182637 -> 0.18263705
recipients: + twouters
2008-01-29 22:39:05twouterssetspambayes_score: 0.182637 -> 0.182637
messageid: <1201646345.65.0.388341439945.issue1967@psf.upfronthosting.co.za>
2008-01-29 22:39:04twouterslinkissue1967 messages
2008-01-29 22:39:03twouterscreate