[issue5508] maximum recursion depth exceeded in __subclasscheck__

2009-04-05 Thread Georg Brandl
Georg Brandl added the comment: The messages are now suppressed by the temporary bump of the recursion limit in PyErr_GivenExceptionMatches. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue5508] maximum recursion depth exceeded in __subclasscheck__

2009-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is the reason. Starting from Python 2.6, classes can redefine subclass checking using a special method named __subclasscheck__. Since this method can contain arbitrary code, we have to guard against recursion when calling it. Therefore, the recursion count

[issue5508] maximum recursion depth exceeded in __subclasscheck__

2009-03-18 Thread ganges master
New submission from ganges master : this is similar to bug #5370, but this for is a different reason. also, i have seen several sites on google that mention it, so it has happened to quite a few people. the bug is that when calling dir() on a object, it looks for __members__ and __methods__, whi