Re: Traceback of hanged process

2007-01-08 Thread Mike C. Fletcher
Klaas wrote: > Hynek Hanke wrote: > >> Hello, >> >> please, how do I create a pythonic traceback from a python process that >> hangs and is not running in an interpreter that I executed manually >> or it is but doesn't react on CTRL-C etc? I'm trying to debug a server >> implemented in Python, s

Re: Traceback of hanged process

2007-01-08 Thread Klaas
Hynek Hanke wrote: > Hello, > > please, how do I create a pythonic traceback from a python process that > hangs and is not running in an interpreter that I executed manually > or it is but doesn't react on CTRL-C etc? I'm trying to debug a server > implemented in Python, so I need some analog of 'g

Re: Traceback of hanged process

2007-01-07 Thread Gabriel Genellina
On 6 ene, 19:45, Hynek Hanke <[EMAIL PROTECTED]> wrote: > please, how do I create a pythonic traceback from a python process that > hangs and is not running in an interpreter that I executed manually > or it is but doesn't react on CTRL-C etc? I'm trying to debug a server > implemented in Python,

Re: Traceback of hanged process

2007-01-06 Thread Jonathan Curran
Heh, I kinda messed up the code there. It should be: import sys log_file = open('errors.log', 'w') sys.stderr = log_file log_file.close() As for the Ctrl-C, you can catch that when KeyboardInterrupt exception is raised. - Jonathan -- http://mail.python.org/mailman/listinfo/python-list

Re: Traceback of hanged process

2007-01-06 Thread Jonathan Curran
On Saturday 06 January 2007 16:45, Hynek Hanke wrote: > Hello, > > please, how do I create a pythonic traceback from a python process that > hangs and is not running in an interpreter that I executed manually > or it is but doesn't react on CTRL-C etc? I'm trying to debug a server > implemented in