[New-bugs-announce] [issue4716] Python 3.0 halts on shutdown when settrace is set

Fabio Zadrozny report at bugs.python.org
Mon Dec 22 12:09:06 CET 2008


New submission from Fabio Zadrozny <fabioz at users.sourceforge.net>:

In Python 3.0, the interpreter will not shutdown properly after setting
a tracing function and something goes into stdout.

The code attached shows the problem in action: just execute it and
notice how the interpreter will be kept running after the code has been
executed.

There are some more things that need to be considered:
- If the print('here') is not called, it will shutdown
- If BOTH the print('here') and the sys.settrace(None) is not called, it
will NOT shutdown

Note: I've marked the bug as crash because it's halting, but maybe there
could be a better alternative for it...

----------
components: Interpreter Core
files: tracing_test.py
messages: 78169
nosy: fabioz
severity: normal
status: open
title: Python 3.0 halts on shutdown when settrace is set
type: crash
versions: Python 3.0
Added file: http://bugs.python.org/file12422/tracing_test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4716>
_______________________________________


More information about the New-bugs-announce mailing list