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 stutzbach
Recipients dstanek, flox, rhettinger, stutzbach
Date 2010-08-04.18:05:46
SpamBayes Score 0.000533327
Marked as misclassified No
Message-id <1280945150.42.0.766064991919.issue8757@psf.upfronthosting.co.za>
In-reply-to
Content
The swap bodies technique has been used in list.sort for a long time, but users expect list.sort to mutate the list.

Even with a pure-Python implementation of sets, I would not expect __contains__ to be a mutating method (unless I have gone out of way to write an evil __eq__ or __hash__ function).

I grant you that I would not expect atomicity, but the example script does not assume atomicity.
History
Date User Action Args
2010-08-04 18:05:50stutzbachsetrecipients: + stutzbach, rhettinger, dstanek, flox
2010-08-04 18:05:50stutzbachsetmessageid: <1280945150.42.0.766064991919.issue8757@psf.upfronthosting.co.za>
2010-08-04 18:05:47stutzbachlinkissue8757 messages
2010-08-04 18:05:47stutzbachcreate