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 Joshua Morton
Recipients Joshua Morton, steven.daprano
Date 2016-05-08.07:08:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462691287.04.0.375326630748.issue26973@psf.upfronthosting.co.za>
In-reply-to
Content
There (seemed to be) consensus between the one or two on topic commenters that something was off, although much of the discussion was on a tangent. Although on looking back, there was even less discussion than I originally thought. Heh.

My response was going to be very different, however I did some additional digging: the `collections.abc.Set` class can be used as a mixin for implementing set-likes. In its default implementations of the various binops, they will attempt to convert the right hand argument of an operator to the correct type, via _from_iterable. This in effect makes the set the special case that is more permissive than Set is. 

This strikes me as strange, I'd expect set and Set to be 'the same', or in other words a Set to act like a set and vice versa. But it seems that python swings toward your intuition and not mine. And the opposite, making set *more* permissive also doesn't sit well, nor does it feel necessary.
History
Date User Action Args
2016-05-08 07:08:07Joshua Mortonsetrecipients: + Joshua Morton, steven.daprano
2016-05-08 07:08:07Joshua Mortonsetmessageid: <1462691287.04.0.375326630748.issue26973@psf.upfronthosting.co.za>
2016-05-08 07:08:07Joshua Mortonlinkissue26973 messages
2016-05-08 07:08:06Joshua Mortoncreate