Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread Vitja Makarov
2011/7/12 Stefan Behnel : > mark florisson, 12.07.2011 12:11: >> >> On 12 July 2011 11:46, Vitja Makarov wrote: >>> >>> 2011/7/12 Stefan Behnel Vitja Makarov, 12.07.2011 09:46: > > About cdef classes: probably it's better to > transform super().method(...) into direct form, e.

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread Stefan Behnel
mark florisson, 12.07.2011 12:11: On 12 July 2011 11:46, Vitja Makarov wrote: 2011/7/12 Stefan Behnel Vitja Makarov, 12.07.2011 09:46: About cdef classes: probably it's better to transform super().method(...) into direct form, e.g. BaseClass.method(self, ...) Except when it doesn't work. ;

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread mark florisson
On 12 July 2011 11:46, Vitja Makarov wrote: > 2011/7/12 Stefan Behnel >> >> Vitja Makarov, 12.07.2011 09:46: >>> >>> About cdef classes: probably it's better to >>> transform super().method(...) into direct form, e.g. BaseClass.method(self, >>> ...) >> >> Except when it doesn't work. ;) >> >>   A

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread Vitja Makarov
2011/7/12 Stefan Behnel > > Vitja Makarov, 12.07.2011 09:46: >> >> About cdef classes: probably it's better to >> transform super().method(...) into direct form, e.g. BaseClass.method(self, >> ...) > > Except when it doesn't work. ;) > >   A >  / \ >  B  C >  \ / >   D > > The MRO here is D-B-A-C.

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread Stefan Behnel
Vitja Makarov, 12.07.2011 09:46: About cdef classes: probably it's better to transform super().method(...) into direct form, e.g. BaseClass.method(self, ...) Except when it doesn't work. ;) A / \ B C \ / D The MRO here is D-B-A-C. If C unconditionally calls A.method(), A's imple

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread Vitja Makarov
2011/7/6 Stefan Behnel > Vitja Makarov, 06.07.2011 09:05: > > 2011/7/6 Stefan Behnel: >> >>> Stefan Behnel, 05.07.2011 10:04: >>> Vitja Makarov, 05.07.2011 09:17: > > 2011/7/5 Stefan Behnel: > >> >> Vitja Makarov, 05.07.2011 08:21: >> >>> >>> I was