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.

classification
Title: Tutorial section 9.5.1 ignores MRO for new-style classes
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: gazzadee, rhettinger
Priority: normal Keywords:

Created on 2005-12-16 07:08 by gazzadee, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg27089 - (view) Author: GaryD (gazzadee) Date: 2005-12-16 07:08
Section 9.5.1 ("Multiple Inheritance") of the tutorial
(as viewed on http://www.python.org/doc/2.4.2/tut/)
discusses the Method Resolution Order (MRO) for classes
with multiple inheritance.

However, the 2nd paragraph incorrectly states that "The
only rule necessary to explain the semantics is the
resolution rule used for class attribute references.
This is depth-first, left-to-right". Whilst this is
true for old-style classes, new-style classes use a
different MRO (as documented elsewhere - eg.
http://www.python.org/2.3/mro.html)
msg27090 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2007-04-03 01:40
Fixed.  See versions 54667 and 54668.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42702
2005-12-16 07:08:32gazzadeecreate