Hi again, Dag Sverre Seljebotn wrote: > #cython: cdef Visitor: > class Visitor: > > #cython: cdef object pre_FuncDefNode(FuncDefNode node): > def pre_FuncDefNode(node):
What about just using plain old "cdef" to make it valid Cython code, and then run a cy2py tool over it in setup.py that strips it down into valid Python code? That's how 2to3 works. The tool could just bail out if it finds anything that's not pythonisable, such as cimports and C pointer types. The down side is obviously that this would prevent us from running Cython from the source directory ... Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
