2011/7/21 Stefan Behnel :
> Robert Bradshaw, 21.07.2011 11:21:
>>
>> On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote:
>>>
>>> 2011/7/8 mark florisson
In descr_get you create and return a new CyFunction with a __self__
set (note, not m_self) and in __call__ you put __self__ in the
2011/7/22 Stefan Behnel :
> Vitja Makarov, 21.07.2011 20:57:
>>
>> 2011/7/21 Stefan Behnel:
>>>
>>> Robert Bradshaw, 21.07.2011 11:21:
On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote:
>
> 2011/7/8 mark florisson
>>
>> In descr_get you create and return a new CyFunction
Vitja Makarov, 21.07.2011 20:57:
2011/7/21 Stefan Behnel:
Robert Bradshaw, 21.07.2011 11:21:
On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote:
2011/7/8 mark florisson
In descr_get you create and return a new CyFunction with a __self__
set (note, not m_self) and in __call__ you put __sel
2011/7/21 Stefan Behnel :
> Robert Bradshaw, 21.07.2011 11:21:
>>
>> On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote:
>>>
>>> 2011/7/8 mark florisson
In descr_get you create and return a new CyFunction with a __self__
set (note, not m_self) and in __call__ you put __self__ in the
Robert Bradshaw, 21.07.2011 11:21:
On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote:
2011/7/8 mark florisson
In descr_get you create and return a new CyFunction with a __self__
set (note, not m_self) and in __call__ you put __self__ in the args
tuple and the function as m_self, and then call
On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote:
>
>
> 2011/7/8 mark florisson
>>
>> On 7 July 2011 22:39, Vitja Makarov wrote:
>> >
>> >
>> > 2011/7/8 mark florisson
>> >>
>> >> On 7 July 2011 22:15, Vitja Makarov wrote:
>> >> >
>> >> >
>> >> > 2011/7/7 mark florisson
>> >> >>
>> >> >> O
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.
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. ;
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
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.
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
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
On 7 July 2011 23:13, Vitja Makarov wrote:
>
>
> 2011/7/8 mark florisson
>>
>> On 7 July 2011 22:39, Vitja Makarov wrote:
>> >
>> >
>> > 2011/7/8 mark florisson
>> >>
>> >> On 7 July 2011 22:15, Vitja Makarov wrote:
>> >> >
>> >> >
>> >> > 2011/7/7 mark florisson
>> >> >>
>> >> >> On 6 July 2
2011/7/8 mark florisson
> On 7 July 2011 22:39, Vitja Makarov wrote:
> >
> >
> > 2011/7/8 mark florisson
> >>
> >> On 7 July 2011 22:15, Vitja Makarov wrote:
> >> >
> >> >
> >> > 2011/7/7 mark florisson
> >> >>
> >> >> On 6 July 2011 10:01, Vitja Makarov wrote:
> >> >> > 2011/7/6 Stefan Behn
On 7 July 2011 22:39, Vitja Makarov wrote:
>
>
> 2011/7/8 mark florisson
>>
>> On 7 July 2011 22:15, Vitja Makarov wrote:
>> >
>> >
>> > 2011/7/7 mark florisson
>> >>
>> >> On 6 July 2011 10:01, Vitja Makarov wrote:
>> >> > 2011/7/6 Stefan Behnel :
>> >> >> Vitja Makarov, 06.07.2011 09:05:
>>
2011/7/8 mark florisson
> On 7 July 2011 22:15, Vitja Makarov wrote:
> >
> >
> > 2011/7/7 mark florisson
> >>
> >> On 6 July 2011 10:01, Vitja Makarov wrote:
> >> > 2011/7/6 Stefan Behnel :
> >> >> Vitja Makarov, 06.07.2011 09:05:
> >> >>>
> >> >>> 2011/7/6 Stefan Behnel:
> >>
> >> S
On 7 July 2011 22:15, Vitja Makarov wrote:
>
>
> 2011/7/7 mark florisson
>>
>> On 6 July 2011 10:01, Vitja Makarov wrote:
>> > 2011/7/6 Stefan Behnel :
>> >> Vitja Makarov, 06.07.2011 09:05:
>> >>>
>> >>> 2011/7/6 Stefan Behnel:
>>
>> Stefan Behnel, 05.07.2011 10:04:
>> >
>> >
2011/7/7 mark florisson
> On 6 July 2011 10:01, Vitja Makarov wrote:
> > 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 S
On 7 July 2011 17:09, Vitja Makarov wrote:
> 2011/7/6 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 Behne
On 6 July 2011 10:01, Vitja Makarov wrote:
> 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.
2011/7/6 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:
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 thinking about imple
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 thinking about implementing new super() with no arguments.
http://trac.cython.org/cython_trac/ticket
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 thinking about implementing new super() with no arguments.
http://trac.cython.org/cython_trac/tic
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 thinking about implementing new super() with no arguments.
http://trac.cython.org/cython_trac/ticket/696
The problem is where to store __class__, I see two option
Vitja Makarov, 05.07.2011 10:37:
2011/7/5 Stefan Behnel:
IMO, the main reason for the heuristic is to prevent class objects from
being kept alive by their methods, except for the single case where super()
is used. Keeping a class alive just because one of its methods is still used
somewhere can
2011/7/5 Stefan Behnel :
> Vitja Makarov, 05.07.2011 09:17:
>>
>> 2011/7/5 Stefan Behnel:
>>>
>>> Vitja Makarov, 05.07.2011 08:21:
I was thinking about implementing new super() with no arguments.
>>>
>>> http://trac.cython.org/cython_trac/ticket/696
>>>
The problem is where to store
Vitja Makarov, 05.07.2011 09:17:
2011/7/5 Stefan Behnel:
Vitja Makarov, 05.07.2011 08:21:
I was thinking about implementing new super() with no arguments.
http://trac.cython.org/cython_trac/ticket/696
The problem is where to store __class__, I see two options here:
1. Add func_class member
2011/7/5 Stefan Behnel :
> Vitja Makarov, 05.07.2011 08:21:
>>
>> I was thinking about implementing new super() with no arguments.
>
> Please do :)
>
> If you start working on it, please assign the ticket to you:
>
> http://trac.cython.org/cython_trac/ticket/696
>
Ok, I'll do this if I start.
>
>
Vitja Makarov, 05.07.2011 08:21:
I was thinking about implementing new super() with no arguments.
Please do :)
If you start working on it, please assign the ticket to you:
http://trac.cython.org/cython_trac/ticket/696
The problem is where to store __class__, I see two options here:
1. Add
I was thinking about implementing new super() with no arguments.
The problem is where to store __class__, I see two options here:
1. Add func_class member to CyFunction, this way __class__ will be
private and not visible for inner functions:
2. Put it into closure
Actually, I like the first one.
31 matches
Mail list logo