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 tim.peters
Recipients arigo, fdrake, pitrou, tim.peters
Date 2013-12-09.03:55:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386561335.05.0.0659919159877.issue19542@psf.upfronthosting.co.za>
In-reply-to
Content
The weakref.slice fix looks solid to me, although it appears to be specific to 2.7 (the methods are fancier on the current default branch, fiddling with self._pending_removals too).

Does anyone know why the signature of pop is:

    def pop(self, key, *args)

?  It doesn't make sense to me to accept any number of arguments following `key`.  Perhaps it's just an obscure way to avoid doing:

_noarg = object()  # unique sentinel

def pop(self, key, default=_noarg):

?
History
Date User Action Args
2013-12-09 03:55:35tim.peterssetrecipients: + tim.peters, fdrake, arigo, pitrou
2013-12-09 03:55:35tim.peterssetmessageid: <1386561335.05.0.0659919159877.issue19542@psf.upfronthosting.co.za>
2013-12-09 03:55:35tim.peterslinkissue19542 messages
2013-12-09 03:55:34tim.peterscreate