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 Amit.Saha
Recipients Amit.Saha, docs@python
Date 2013-04-27.11:47:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367063240.22.0.643670001227.issue17854@psf.upfronthosting.co.za>
In-reply-to
Content
The description of the symmetric difference operation implies that it cannot be applied to more than two sets (http://docs.python.org/3/library/stdtypes.html#set.symmetric_difference).

However, this is certainly possible:

>>> s={1,2}
>>> t={2,3}
>>> u={3,4}
>>> s^t^u
{1, 4}
>>> s.symmetric_difference(t).symmetric_difference(u)
{1, 4}

I am not sure how much of a "semantic" sense that makes, given that symmetric difference is by definition for two sets. (http://en.wikipedia.org/wiki/Symmetric_difference).

So, either the operator should be fixed to allow only two sets or the description be updated.
History
Date User Action Args
2013-04-27 11:47:20Amit.Sahasetrecipients: + Amit.Saha, docs@python
2013-04-27 11:47:20Amit.Sahasetmessageid: <1367063240.22.0.643670001227.issue17854@psf.upfronthosting.co.za>
2013-04-27 11:47:20Amit.Sahalinkissue17854 messages
2013-04-27 11:47:19Amit.Sahacreate