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 terry.reedy
Recipients daniel.urban, dstanek, rhettinger, stutzbach, terry.reedy, ysj.ray
Date 2011-06-12.22:19:52
SpamBayes Score 3.03176e-09
Marked as misclassified No
Message-id <1307917193.45.0.0701239472418.issue8743@psf.upfronthosting.co.za>
In-reply-to
Content
If the code were acting exactly as documented, I would consider this a feature request. But "require that the parameter also be an instance of set()" (from original message) is too limited.

>>> set() | frozenset()
set()

So 'set' in "their operator based counterparts require their arguments to be sets." (doc) seems to be meant to be more generic, in which case 'instance of collections.Set' seems reasonable. To be clear, the doc could be updated to "... sets, frozensets, and other instances of collections.Set."

"Both set and frozenset support set to set comparisons. " This includes comparisons between the two classes.

>>> set() == frozenset()
True

so perhaps comparisons should be extended also.
History
Date User Action Args
2011-06-12 22:19:53terry.reedysetrecipients: + terry.reedy, rhettinger, dstanek, stutzbach, daniel.urban, ysj.ray
2011-06-12 22:19:53terry.reedysetmessageid: <1307917193.45.0.0701239472418.issue8743@psf.upfronthosting.co.za>
2011-06-12 22:19:52terry.reedylinkissue8743 messages
2011-06-12 22:19:52terry.reedycreate