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 <>
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()

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()

so perhaps comparisons should be extended also.
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: <>
2011-06-12 22:19:52terry.reedylinkissue8743 messages
2011-06-12 22:19:52terry.reedycreate