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: C3 MRO algorithm implementation
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, pedronis
Priority: normal Keywords: patch

Created on 2002-10-07 03:02 by pedronis, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
c3_impl.patch pedronis, 2002-10-07 03:02 c3 impl and test_descr additions
Messages (4)
msg41347 - (view) Author: Samuele Pedroni (pedronis) * (Python committer) Date: 2002-10-07 03:02
At least is a beginning. On Linux all tests and the 
modified test_descr.py pass.

A few cases in test_descr.py are commented out, 
maybe they should be adjusted, reconstructed.

For order disagreement situations: backup logic 
picking an element from the first non-empty list and 
removing it from all lists, where it appears, and just 
throwing a warning instead of an exception could be 
put where I set the exception now.

Although in the long run people should learn to use 
consistent hiearchies anyway.

PS: I was wondering how to get/reuse lst.remove(o) 
functionality from C, apart through 
PyObject_CallMethod...
msg41348 - (view) Author: Samuele Pedroni (pedronis) * (Python committer) Date: 2002-11-03 20:39
Logged In: YES 
user_id=61408

FYI, I will be off-line from 4 to 16 Nov.
msg41349 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-11-14 19:51
Logged In: YES 
user_id=6380

All checked in.  Thanks, Samuele!
msg57495 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-11-14 18:26
BTW for reference, see http://www.python.org/download/releases/2.3/mro/
History
Date User Action Args
2022-04-10 16:05:43adminsetgithub: 37275
2007-11-14 18:26:50gvanrossumsetmessages: + msg57495
2002-10-07 03:02:42pedroniscreate