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 ivank
Recipients ivank, rhettinger
Date 2010-10-30.06:32:32
SpamBayes Score 0.003962294
Marked as misclassified No
Message-id <1288420354.41.0.410432357777.issue10240@psf.upfronthosting.co.za>
In-reply-to
Content
CPython's dict(obj) ignores `keys` and `__iter__` if obj is a subclass of dict.  I thought this was an important language detail, not just an implementation quirk.  But, I just tested pypy 1.3, and it is calling .keys() on dicts.  Oh well.

I think the __doc__ can still be slightly improved; ignore my patch and just change the first E: to E.keys(): - that would be more accurate.
History
Date User Action Args
2010-10-30 06:32:34ivanksetrecipients: + ivank, rhettinger
2010-10-30 06:32:34ivanksetmessageid: <1288420354.41.0.410432357777.issue10240@psf.upfronthosting.co.za>
2010-10-30 06:32:32ivanklinkissue10240 messages
2010-10-30 06:32:32ivankcreate