Message282039
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. |
|
Date |
User |
Action |
Args |
2016-11-29 20:02:27 | SilentGhost | set | recipients:
+ SilentGhost, nyoshimizu |
2016-11-29 20:02:27 | SilentGhost | set | messageid: <1480449747.22.0.891984102113.issue28834@psf.upfronthosting.co.za> |
2016-11-29 20:02:27 | SilentGhost | link | issue28834 messages |
2016-11-29 20:02:27 | SilentGhost | create | |
|