[issue12248] __dir__ semantics changed in Python 2.7.2

Soren Hansen report at bugs.python.org
Sun Jun 5 00:30:59 CEST 2011


Soren Hansen <soren at linux2go.dk> added the comment:

2011/6/5 Benjamin Peterson <report at bugs.python.org>:
> 2011/6/4 Soren Hansen <report at bugs.python.org>:
>> ...I end up with a "RuntimeError: maximum recursion depth exceeded". I
>> can't say I'm surprised :)
> Ah, sorry I should have thought before writing that. :)
> self.__class__.__dir__.__get__(self, self.__class__) should work,
> though.

Yeah, that one does seem to work. Excellent, thanks!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12248>
_______________________________________


More information about the Python-bugs-list mailing list