traceback output to a network connection

Peter Hansen peter at engcorp.com
Thu Apr 18 23:36:29 EDT 2002


Henning Peters wrote:
> 
> hi NG,
> 
> for debugging a network server i would like to show the parser's traceback
> output on my network client. I figured out that the built-in traceback
> module would be a good choice, but it seems, that the traceback-methods are
> limited to write only to open file handlers.
> 
> is there a known way to relay this stuff to an open network socket
> connection?
> thanks...

You might be interested in socket.Socket.makefile() which can give
you a file handle from a socket.

-Peter



More information about the Python-list mailing list