Message11007

Author stefan.richthofer
Recipients stefan.richthofer, zyasoft
Date 2017-01-06.15:40:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483717209.08.0.647642644946.issue2515@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-01-06 15:40:09stefan.richthofersetmessageid: <1483717209.08.0.647642644946.issue2515@psf.upfronthosting.co.za>
2017-01-06 15:40:09stefan.richthofersetrecipients: + stefan.richthofer, zyasoft
2017-01-06 15:40:09stefan.richthoferlinkissue2515 messages
2017-01-06 15:40:08stefan.richthofercreate