[issue12248] __dir__ semantics changed in Python 2.7.2
Benjamin Peterson
report at bugs.python.org
Sat Jun 4 04:43:14 CEST 2011
Benjamin Peterson <benjamin at python.org> added the comment:
2011/6/3 Raymond Hettinger <report at bugs.python.org>:
>
> Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
>
> I believe the type check was gratuitous to begin with and should be removed. There's no reason the result has to be a list.
The reason for it is that the sort() method is called on it.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12248>
_______________________________________
More information about the Python-bugs-list
mailing list