Message156583
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. |
|
Date |
User |
Action |
Args |
2012-03-22 16:09:25 | telmich | set | recipients:
+ telmich, pitrou, eric.araujo, r.david.murray, neologix, poq |
2012-03-22 16:09:25 | telmich | set | messageid: <1332432565.68.0.473229192063.issue14228@psf.upfronthosting.co.za> |
2012-03-22 16:09:25 | telmich | link | issue14228 messages |
2012-03-22 16:09:24 | telmich | create | |
|