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 serhiy.storchaka
Recipients eric.snow, r.david.murray, rhettinger, serhiy.storchaka, vstinner
Date 2015-07-23.08:55:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437641732.1.0.0318423817215.issue24681@psf.upfronthosting.co.za>
In-reply-to
Content
The condition that is determined by the PyObject_RichCompareBool() check is not that the element is already present, but that the element was present. Even if we will agree that such behavior change is appropriate, the inconsistency with dict makes it doubtful (originally set was implemented with dict).

I have no objections against tweaking so->table caching. I even think this part of the patch improves the code.
History
Date User Action Args
2015-07-23 08:55:32serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, r.david.murray, eric.snow
2015-07-23 08:55:32serhiy.storchakasetmessageid: <1437641732.1.0.0318423817215.issue24681@psf.upfronthosting.co.za>
2015-07-23 08:55:32serhiy.storchakalinkissue24681 messages
2015-07-23 08:55:31serhiy.storchakacreate