Hi!

 When creating a new-style class with several base classes, Python
uses a method resolution order that is called C3 algorithm.

It is called a "FixMe" in sage.categories.category to use the same
algorithm for computing C.all_super_categories() for a category C. In
that way, the category hierarchy would become exactly parallel to the
method resolution order of C.parent_class.

I found a definition of the C3 algorithm, I could implement it myself,
and also I found several implementations in the web. But apparently
the algorithm already is somewhere in Python, so that I'd prefer to
simply import it -- is that possible? Where from? Can you give me a
pointer, please?

Best regards,
Simon

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to