homepage

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 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.
History
Date User Action Args
2021年02月28日 00:10:50rhettingersetrecipients: + rhettinger, docs@python, Gerrit.Holl, martin.panter, eryksun
2021年02月28日 00:10:50rhettingersetmessageid: <1614471050.42.0.619402795142.issue20503@roundup.psfhosted.org>
2021年02月28日 00:10:50rhettingerlinkissue20503 messages
2021年02月28日 00:10:50rhettingercreate

AltStyle によって変換されたページ (->オリジナル) /