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 SilentGhost
Recipients SilentGhost, nyoshimizu
Date 2016-11-29.20:02:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480449747.22.0.891984102113.issue28834@psf.upfronthosting.co.za>
In-reply-to
Content
You seem to be misunderstanding how the intersection/union/etc are supposed to be used:

>>> ab = {'a', 'b'}
>>> ab.intersection('bc')
{'b'}

Using set.intersection (where set is a built-in class, rather than an instance thereof) requires the first argument to be set (which is the actual instance of set class). This is no different from usage of any other class / object across Python, however, it is highly uncommon.
History
Date User Action Args
2016-11-29 20:02:27SilentGhostsetrecipients: + SilentGhost, nyoshimizu
2016-11-29 20:02:27SilentGhostsetmessageid: <1480449747.22.0.891984102113.issue28834@psf.upfronthosting.co.za>
2016-11-29 20:02:27SilentGhostlinkissue28834 messages
2016-11-29 20:02:27SilentGhostcreate