SilentGhost added the comment:
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.
----------
nosy: +SilentGhost
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com