Message119962
| Author |
ivank |
| Recipients |
ivank, rhettinger |
| Date |
2010年10月30日.06:32:32 |
| SpamBayes Score |
0.003962294 |
| Marked as misclassified |
No |
| Message-id |
<1288420354.41.0.410432357777.issue10240@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
CPython's dict(obj) ignores `keys` and `__iter__` if obj is a subclass of dict. I thought this was an important language detail, not just an implementation quirk. But, I just tested pypy 1.3, and it is calling .keys() on dicts. Oh well.
I think the __doc__ can still be slightly improved; ignore my patch and just change the first E: to E.keys(): - that would be more accurate. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年10月30日 06:32:34 | ivank | set | recipients:
+ ivank, rhettinger |
| 2010年10月30日 06:32:34 | ivank | set | messageid: <1288420354.41.0.410432357777.issue10240@psf.upfronthosting.co.za> |
| 2010年10月30日 06:32:32 | ivank | link | issue10240 messages |
| 2010年10月30日 06:32:32 | ivank | create |
|