Hi again,
Stefan Behnel wrote:
> Lisandro Dalcin wrote:
>> Stefan, please revert the last 'classmethod' change. That is not
>> going so solve anything,
>
> It did solve the problem for what I tested. :)
>
> Rev. 591 has another fix that works for your new test case.
... although that now crashes in Py3. Weird. Given my last patch and your
example:
----------------------
class class1:
a = 5
plus = classmethod(f_plus)
def view(cls):
print cls.__name__
view = classmethod(view)
class class2(object):
a = 6
plus = classmethod(f_plus)
def view(cls):
print cls.__name__
view = classmethod(view)
----------------------
when I comment out any of the the "view = classmethod()" lines, it doesn't
segfault and raises the expected exception instead. But when I leave them both
in as above, it crashes.
The difference to Py2 is that all 'methods' are PyCFunction objects and take
the new path I added to make it work in Py2...
Lisandro, could you try to look into this a bit?
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev