Hi,
I just found cython and I'm trying to speedup my programs with it... I have
several classes which are bottlenecks of my applications and I want to make
them as fast as possible while keeping the same interface as old python classes
had..
I would like to use cdef-ed methods in python
so I'm trying to do something like this:
a.pyx:
----------------------------------------------------
cdef class A:
cdef public void a(A self):
print 'method A::a'
return
----------------------------------------------------
pa.py
----------------------------------------------------
from a import A
xa = A()
xa.a()
----------------------------------------------------
and it says:
----------------------------------------------------
python pa.py
Traceback (most recent call last):
File "pa.py", line 4, in <module>
xa.a()
AttributeError: 'a.A' object has no attribute 'a'
----------------------------------------------------
thanks for any suggestions..
Jan Spurny
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev