Message387797
| Author |
rhettinger |
| Recipients |
Gerrit.Holl, docs@python, eryksun, martin.panter, rhettinger |
| Date |
2021年02月28日.00:10:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1614471050.42.0.619402795142.issue20503@roundup.psfhosted.org> |
| In-reply-to |
| Content |
This is a bit out of date. The isinstance() docs now specify that the predicate tests for direct, indirect, and virtual inheritance. Likewise, the super() docs already specify that only the __mro__ is searched. So those docs are already precise.
Am thinking of adding a FAQ entry about when direct inheritance is required and include the OP's example. FWIW, this isn't really about super(). It affects any attribute lookup or any other property of inheritance. A true result from instance() doesn't imply that actual inheritance has occurred. |
|