Author twouters
Recipients twouters
Date 2008-01-29.22:39:03
SpamBayes Score 0.182637
Marked as misclassified No
Message-id <>
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()
Date User Action Args
2008-01-29 22:39:06twouterssetspambayes_score: 0.182637 -> 0.182637
recipients: + twouters
2008-01-29 22:39:05twouterssetspambayes_score: 0.182637 -> 0.182637
messageid: <>
2008-01-29 22:39:04twouterslinkissue1967 messages
2008-01-29 22:39:03twouterscreate