[Pyrex] Interactive Interpreter and Pyrex

Kenny MacDermid kenny at cs.dal.ca
Mon Jul 20 20:32:31 CEST 2009


Hello,

I'd like to know if there's any way to import a pyrex module and still  
have the python interactive interpreter handle errors as before.

For example, normally if I type:

 >>> abc

I get a standard NameError, and then another '>>>' line

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'abc' is not defined
 >>>

and can continue working, but if I first import a pyrex module then I  
get the same traceback, but then no '>>>' line. Python just quits.

This makes it difficult to test python code that uses pyrex because if  
you make any small typo you lose all your setup so far.

Thanks,

Kenny



More information about the Pyrex mailing list