Commit a9e92a10 authored by gsamain's avatar gsamain

Remove unnecessary staticmethod decorator for cypclass __new__ test

parent 8d33aa2d
cdef cypclass SomeMemory:
int a
@staticmethod
SomeMemory __new__(void* (*f)()):
SomeMemory __new__(f):
o = <SomeMemory> f()
o.a = -2
return o
@staticmethod
void* __new__(void* (*f)(), int a):
void* __new__(f, int a):
o = <SomeMemory> f()
o.a = a
return <void*> o
@staticmethod
SomeMemory __alloc__():
return new SomeMemory()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment