Commit a9e92a10 authored by gsamain's avatar gsamain

Remove unnecessary staticmethod decorator for cypclass __new__ test

parent 8d33aa2d
cdef cypclass SomeMemory: cdef cypclass SomeMemory:
int a int a
@staticmethod SomeMemory __new__(f):
SomeMemory __new__(void* (*f)()):
o = <SomeMemory> f() o = <SomeMemory> f()
o.a = -2 o.a = -2
return o return o
@staticmethod void* __new__(f, int a):
void* __new__(void* (*f)(), int a):
o = <SomeMemory> f() o = <SomeMemory> f()
o.a = a o.a = a
return <void*> o return <void*> o
@staticmethod
SomeMemory __alloc__(): SomeMemory __alloc__():
return new SomeMemory() 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