Message109783
| Author |
stutzbach |
| Recipients |
stutzbach |
| Date |
2010年07月09日.19:03:34 |
| SpamBayes Score |
0.04224086 |
| Marked as misclassified |
No |
| Message-id |
<1278702217.69.0.69895367614.issue9212@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> 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. |
|
History
|
|---|
| 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 |
|