Message245870
I agree that the tuple explanation if ok. But "Return whether an object is an instance of a class or of a subclass thereof." (3.5) seems wrong. I believe 'subclass' should be 'superclass'.
>>> class C: pass
>>> class Csub(C): pass
>>> isinstance(C(), Csub)
False
>>> isinstance(Csub(), C)
True |
|
Date |
User |
Action |
Args |
2015-06-26 21:20:18 | terry.reedy | set | recipients:
+ terry.reedy, steven.daprano, docs@python, Luc Saffre |
2015-06-26 21:20:18 | terry.reedy | set | messageid: <1435353618.07.0.903720805027.issue24515@psf.upfronthosting.co.za> |
2015-06-26 21:20:18 | terry.reedy | link | issue24515 messages |
2015-06-26 21:20:18 | terry.reedy | create | |
|