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 Devin Jeanpierre, martin.panter, rhettinger
Date 2015-01-04.10:17:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420366665.47.0.390120915155.issue23161@psf.upfronthosting.co.za>
In-reply-to
Content
The r-methods have already been implemented.  Here's the difference as of Python 3.4.2:

>>> set(dir(set)) - set(dir(collections.abc.MutableSet))
{'update', 'difference_update', 'symmetric_difference', 'intersection_update', 'intersection', 'issubset', 'issuperset', 'difference', 'copy', 'symmetric_difference_update', 'union'}

Guido intentionally omitted the named set-to-set operations in favor of the operator versions (__ior__, __lt__, etc).  It was not the intention of the ABC to implement the full API (see Guido's PEP 3119 for more of his rationale.

The copy() method was also omitted on purpose. It is a bit of a can-of-worms for abstract class to know everything it needs to copy the the concrete set.  This work is best left to the subclass which has the required knowledge.

I'm closing this one because I'm channeling Guido and thinking he really didn't want those methods as part of the ABC.
History
Date User Action Args
2015-01-04 10:17:45rhettingersetrecipients: + rhettinger, Devin Jeanpierre, martin.panter
2015-01-04 10:17:45rhettingersetmessageid: <1420366665.47.0.390120915155.issue23161@psf.upfronthosting.co.za>
2015-01-04 10:17:45rhettingerlinkissue23161 messages
2015-01-04 10:17:45rhettingercreate