telmich <[email protected]> added the comment:
Oh yes, you are right. Sorry for the confusion.
When modifying caller.py to only print(), everything works.
But then I've a different problem: If I want to exit(1),
in case I get a SIGINT, I'd like to try to import sys. But trying to import
sys, will probably fail again, because the user is still pressing ctrl-c:
[17:05] brief:python-traceback-test% ./caller.py
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
^Ccaught signint in child
[17:05] brief:python-traceback-test% ./caller.py
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
Indirect child being called
^Ccaught signint in child
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/usr/lib/python3.2/io.py", line 60, in <module>
[17:05] brief:python-traceback-test% import _io
File "/usr/lib/python3.2/os.py", line 22, in <module>
"""
KeyboardInterrupt
./shellpart.sh: line 7: 23123 Aborted ./__testpython
I'll change my production code to run with -S and restoring SIGINT and report
back.
In any case, I'd appreciate, if cpython would be changed to something more
sane/less verbose by default.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14228>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com