This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon
Date 2013-06-21.01:33:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371778403.78.0.702907758656.issue18275@psf.upfronthosting.co.za>
In-reply-to
Content
class A: pass
class B(A): pass

sup = super(B, B())
isinstance(sup, A)  # returns False

Why is that? Is there an explicit reason to prevent that isinstance check from working? How about just for ABCs? Either way it's annoying that at least for ABCs you can't check against a super object.
History
Date User Action Args
2013-06-21 01:33:23brett.cannonsetrecipients: + brett.cannon
2013-06-21 01:33:23brett.cannonsetmessageid: <1371778403.78.0.702907758656.issue18275@psf.upfronthosting.co.za>
2013-06-21 01:33:23brett.cannonlinkissue18275 messages
2013-06-21 01:33:23brett.cannoncreate