Message109783
>>> isinstance({}.keys(), collections.Set)
True
>>> [method for method in set(dir(collections.Set)) - set(dir({}.keys()))
... if not method.startswith('_')]
['isdisjoint']
(in Python 2.7, use "viewkeys()" instead of "keys")
dict_items has the same problem. |
|
Date |
User |
Action |
Args |
2010-07-09 19:03:37 | stutzbach | set | recipients:
+ stutzbach |
2010-07-09 19:03:37 | stutzbach | set | messageid: <1278702217.69.0.69895367614.issue9212@psf.upfronthosting.co.za> |
2010-07-09 19:03:35 | stutzbach | link | issue9212 messages |
2010-07-09 19:03:34 | stutzbach | create | |
|