This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author telmich
Recipients eric.araujo, neologix, pitrou, poq, r.david.murray, telmich
Date 2012-03-22.16:09:24
SpamBayes Score 8.561041e-12
Marked as misclassified No
Message-id <1332432565.68.0.473229192063.issue14228@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-03-22 16:09:25telmichsetrecipients: + telmich, pitrou, eric.araujo, r.david.murray, neologix, poq
2012-03-22 16:09:25telmichsetmessageid: <1332432565.68.0.473229192063.issue14228@psf.upfronthosting.co.za>
2012-03-22 16:09:25telmichlinkissue14228 messages
2012-03-22 16:09:24telmichcreate