Sebastien Binet wrote:
> hi there,
>
> Just for fun and to see how cython works, I am trying to write a
> CythonInterpreter inheriting from the usual code.InteractiveConsole.
>
> So far so good, I manage to compile cython-oneliners (leveraging
> pyximport.load_module) but then I'd need some help for multi-lines
> statements:
> ## ex:
> cdef class Foo:
>   pass
> ##
>
> for this to work in a reasonnable timely fashion, I'd need to see if
> parsing
> the snippet of code is valid cython (without compiling).
> (I guess I'd need to know if the parsing failed b/c of unsupported python
> constructs or if it is b/c the cython command is incomplete)
>
> any hint ?

I don't think this is possible currently as Cython can generate errors at
any point in its pipeline. In time it might be possible to stop the
pipeline at an earlier stage, but I wouldn't expect great speedups here
still as parsing takes a significant part of the time (don't remember the
numbers though). Sorry.

Dag Svere

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to