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 rhettinger
Recipients dstanek, flox, rhettinger, stutzbach
Date 2010-08-05.00:14:55
SpamBayes Score 0.00063926395
Marked as misclassified No
Message-id <1280967297.03.0.989687718731.issue8757@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, the current docs adequately cover the existing situation:
"Note, the elem argument to the __contains__(), remove(), and discard() methods may be a set. To support searching for an equivalent frozenset, the elem set is temporarily mutated during the search and then restored. During the search, the elem set should not be read or mutated since it does not have a meaningful value."

That being said, I'm going to get rid of set_swap_bodies technique.  Instead, will use an atomic full-copy of the set into a separate frozenset.  That will cure the most egregious problems at the expense of some speed and of creating a new frozenset object that will be visible to a user determined to see it.
History
Date User Action Args
2010-08-05 00:14:57rhettingersetrecipients: + rhettinger, dstanek, stutzbach, flox
2010-08-05 00:14:57rhettingersetmessageid: <1280967297.03.0.989687718731.issue8757@psf.upfronthosting.co.za>
2010-08-05 00:14:55rhettingerlinkissue8757 messages
2010-08-05 00:14:55rhettingercreate