[f2py] cancel fortran module inside python shell

Mark Andrews <[email protected]> Wed, 5 Jan 2011 19:50:24 +0000
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Hi,
I have a simple question, sorry if the answer is out there and my
googling missed it.
To cancel or interrupt a running python script inside a python shell
like e.g., ipython, I press 'ctrl+c'.
If I write a pure fortran program and run it from a linux bash shell,
I can also cancel by pressing "ctrl+c".
However, if I write a fortran module for python using f2py and run
that in a python shell, I can not cancel with "ctrl+c". The only way I
can interrupt it is (with linux) issuing a kill command to the entire
python shell process.
I was wondering if there is something I am missing? Is there something
I should add to the fortran code or maybe to the f2py command line
flags?
thanks,
Mark