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 kaniini
Recipients eric.snow, kaniini, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-06-10.19:58:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465588687.36.0.847425938606.issue27275@psf.upfronthosting.co.za>
In-reply-to
Content
It seems to me that calling __contains__() (PySequence_Contains()) isn't necessary, as the first and last elements of the list are already known, and therefore known to be in the list.  Revising the behaviour of popitem() to avoid calling _odict_popkey_hash() seems like it may provide a marginal performance benefit as well as fix the problem.  Calling PyObject_DelItem() directly on the node should work fine I believe.
History
Date User Action Args
2016-06-10 19:58:07kaniinisetrecipients: + kaniini, rhettinger, eric.snow, serhiy.storchaka, xiang.zhang
2016-06-10 19:58:07kaniinisetmessageid: <1465588687.36.0.847425938606.issue27275@psf.upfronthosting.co.za>
2016-06-10 19:58:07kaniinilinkissue27275 messages
2016-06-10 19:58:07kaniinicreate