Message191550
| 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: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 |
|