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 Javier Dehesa, rhettinger, xtreak
Date 2018-09-18.15:56:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537286171.85.0.956365154283.issue34719@psf.upfronthosting.co.za>
In-reply-to
Content
The feature was first implemented in Lib/sets.py (arising from PEP 218) in pure python. It was found to be useful and carried forward to the C implementation for the built-in type.  The feature is documented but not highlighted in the Library Reference, "Both set and frozenset support set to set comparisons."

You are correct that feature became less performant when the swap-bodies code was eliminated; however, the feature still has value so that a user can write "s in t" rather than "frozenset(s) in t".

Thank you for the suggestion, but I'm going to elect to leave the code as-is. There's no reason break other people's code and remove a feature that is intentional, guaranteed, tested, and sometimes useful in applications that have sets of frozensets.

If you don't like the feature, it is okay to not use it ;-)
History
Date User Action Args
2018-09-18 15:56:11rhettingersetrecipients: + rhettinger, Javier Dehesa, xtreak
2018-09-18 15:56:11rhettingersetmessageid: <1537286171.85.0.956365154283.issue34719@psf.upfronthosting.co.za>
2018-09-18 15:56:11rhettingerlinkissue34719 messages
2018-09-18 15:56:11rhettingercreate