ivank <b...@ludios.org> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10240>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to