[issue12248] __dir__ semantics changed in Python 2.7.2
Raymond Hettinger
report at bugs.python.org
Fri Jun 3 03:42:43 CEST 2011
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
> I don't believe there is any reason to have tightened up
> the type constraints while fixing that - dir() should be
> returning sorted(obj.__dir__()) and not caring about the
> exact return type of the magic method.
+1
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12248>
_______________________________________
More information about the Python-bugs-list
mailing list