[Cython] command to only parse cython statements ?
Sebastien Binet
seb.binet at gmail.com
Tue Jun 9 20:33:27 CEST 2009
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 ?
cheers,
sebastien.
--
#########################################
# Dr. Sebastien Binet
# Laboratoire de l'Accelerateur Lineaire
# Universite Paris-Sud XI
# Batiment 200
# 91898 Orsay
#########################################
More information about the Cython-dev
mailing list