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
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
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,
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
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