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 rhettinger
Recipients belopolsky, djc, giampaolo.rodola, rhettinger
Date 2010-10-28.16:37:50
SpamBayes Score 9.542061e-05
Marked as misclassified No
Message-id <1288283872.68.0.20059652253.issue10221@psf.upfronthosting.co.za>
In-reply-to
Content
I agree with the OP's request.

d.pop(k) is conceptually equivalent to:
   r = d[k]    # raises KeyError(k)
   del d[k]
   return r

The current message was probably borrowed from dict.popitem().  But that is much different since the dict.pop(k) method is key-specific (instead of size related).

This fix should be backported (as it doesn't change guaranteed behaviors but does improve the debugability).
History
Date User Action Args
2010-10-28 16:37:52rhettingersetrecipients: + rhettinger, belopolsky, giampaolo.rodola, djc
2010-10-28 16:37:52rhettingersetmessageid: <1288283872.68.0.20059652253.issue10221@psf.upfronthosting.co.za>
2010-10-28 16:37:50rhettingerlinkissue10221 messages
2010-10-28 16:37:50rhettingercreate