[sage-devel] Re: Where to import the C3 Method Resolution Order from?

2011-10-09 Thread Simon King
Hi Maarten, On 10 Okt., 01:14, Maarten Derickx wrote: > I was curious myself to so I did the looking for you. The method is only > defined as a C method in Objects/typeobject.c and it has the following > signature: > > static PyObject * mro_implementation(PyTypeObject *type) Thank you! So, I co

[sage-devel] Re: Where to import the C3 Method Resolution Order from?

2011-10-09 Thread Maarten Derickx
I was curious myself to so I did the looking for you. The method is only defined as a C method in Objects/typeobject.c and it has the following signature: static PyObject * mro_implementation(PyTypeObject *type) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscr

[sage-devel] Re: Where to import the C3 Method Resolution Order from?

2011-10-09 Thread Maarten Derickx
The only thing I can find is the same as Javier. So I guess you have to dive into the python source code of class.mro http://docs.python.org/library/stdtypes.html?highlight=mro#class.mro -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send

[sage-devel] Re: Where to import the C3 Method Resolution Order from?

2011-10-09 Thread Simon King
Hi Javier, On 9 Okt., 16:53, javier wrote: >  I don't know if this is what you are looking for, but  you can simply > invoke the .mro() method in any "type": No, that's not what I looking for. I look for a function f that takes some lists L1,L2,... as arguments and returns a list L, obtained by

[sage-devel] Re: Where to import the C3 Method Resolution Order from?

2011-10-09 Thread javier
Hi Simon, I don't know if this is what you are looking for, but you can simply invoke the .mro() method in any "type": sage: R. = PolynomialRing(QQ, 1) sage: t = type(R) sage: t.mro() [, , , , , , , , , , ] Cheers, Javier On 9 oct, 13:02, Simon King wrote: > Hi! > >  When creating a new-styl

[sage-devel] Where to import the C3 Method Resolution Order from?

2011-10-09 Thread Simon King
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 hierar

Re: [sage-devel] Asymptote (vector graphics language)

2011-10-09 Thread Jeroen Demeyer
On 2011-10-08 01:36, jsymons wrote: > Maybe some of you, based on the experience of using it, could explain > better than me what are the advantages/disadvantages with respect to > Tachyon renderer. I think it is something very different from the Tachyon renderer. Tachyon is a ray-tracing for 3D re