Message191550
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. |
|
Date |
User |
Action |
Args |
2013-06-21 01:33:23 | brett.cannon | set | recipients:
+ brett.cannon |
2013-06-21 01:33:23 | brett.cannon | set | messageid: <1371778403.78.0.702907758656.issue18275@psf.upfronthosting.co.za> |
2013-06-21 01:33:23 | brett.cannon | link | issue18275 messages |
2013-06-21 01:33:23 | brett.cannon | create | |
|