[IPython-dev] Re: Changes to Notebook Format

Hans Meine hans_meine at gmx.net
Thu Aug 4 08:35:51 EDT 2005


On Thursday 04 August 2005 09:07, Robert Kern wrote:
> >> BTW: Did you find a way to catch stderr output from binary extension
> >> modules?
> >
> > Yes! I didn't have any luck with doing the file descriptor magic in pure
> > Python, but a little bit of Pyrex (attached) works wonders.
>
> And some trivial modifications renders it working in pure Python. Joy!

Cool.  That's indeed what I had in mind.

However, isn't there a problem with os.pipe() buffering?  I thought you'd 
probably have to read() at one point to prevent blocking of further write()s.

I our shell, we have separate processes for the frontend and the backend, 
mainly to make Ctrl-C work.  (Otherwise, the [Ctrl-C] X events are not 
handled before the current code stops.)  Thus, it'd be easy to do the reading 
in time.

Greetings,
   Hans




More information about the IPython-dev mailing list