Author martin.panter
Recipients RusiMody, berker.peksag, ezio.melotti, martin.panter, python-dev, r.david.murray
Date 2015-03-29.23:47:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427672870.6.0.926124371986.issue23792@psf.upfronthosting.co.za>
In-reply-to
Content
I don’t think SIGQUIT handling is a big problem. But even with the new change, it is still easy to screw up the terminal in many cases, so I wouldn’t say this is fixed yet. Steps for Python 3 in a small 80 × 25 terminal on Linux:

* import _pyio; help(_pyio)
* Hit Ctrl-C

Steps for Python 2:

* import _pyio; help(_pyio)
* Hit Ctrl-C
* Hit Space ten times to scroll down. Alternatively, hit Ctrl-C a second time.

I am posting a quick patch which I think should fix this in Python 3 by deferring the traceback until after the child has finished. Another method is using the signal module like <https://github.com/vadmium/pacman-tools/blob/9ffdd88/roopwn#L976>, but that’s probably too platform-specific for the pydoc module.
History
Date User Action Args
2015-03-29 23:47:50martin.pantersetrecipients: + martin.panter, ezio.melotti, r.david.murray, RusiMody, python-dev, berker.peksag
2015-03-29 23:47:50martin.pantersetmessageid: <1427672870.6.0.926124371986.issue23792@psf.upfronthosting.co.za>
2015-03-29 23:47:50martin.panterlinkissue23792 messages
2015-03-29 23:47:50martin.pantercreate