Message11007
I nailed it down to an issue with __instancecheck__ in newstyle (Meta-)classes:
class Foo(object):
pass
class BarMeta(object):
def __instancecheck__(self, obj):
pass
isinstance(Foo, BarMeta) # fails with maximum recursion depth exceeded
- This also fails if Foo is oldstyle
- This passes if Bar is oldstyle |
|
Date |
User |
Action |
Args |
2017-01-06 15:40:09 | stefan.richthofer | set | messageid: <1483717209.08.0.647642644946.issue2515@psf.upfronthosting.co.za> |
2017-01-06 15:40:09 | stefan.richthofer | set | recipients:
+ stefan.richthofer, zyasoft |
2017-01-06 15:40:09 | stefan.richthofer | link | issue2515 messages |
2017-01-06 15:40:08 | stefan.richthofer | create | |
|