Issue 619475: C3 MRO algorithm implementation (original) (raw)

Issue619475

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:43 admin set github: 37275
2007-11-14 18:26:50 gvanrossum set messages: +
2002-10-07 03:02:42 pedronis create