Message112846
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. |
|
Date |
User |
Action |
Args |
2010-08-04 18:05:50 | stutzbach | set | recipients:
+ stutzbach, rhettinger, dstanek, flox |
2010-08-04 18:05:50 | stutzbach | set | messageid: <1280945150.42.0.766064991919.issue8757@psf.upfronthosting.co.za> |
2010-08-04 18:05:47 | stutzbach | link | issue8757 messages |
2010-08-04 18:05:47 | stutzbach | create | |
|