Author ezio.melotti
Recipients RusiMody, berker.peksag, ezio.melotti, r.david.murray
Date 2015-03-27.17:50:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I can reproduce on Python 3 on Ubuntu 14.10.
When I hit Ctrl+C I get:
>>> help(range)
 |  __hash__(self, /)
 |      Return hash(self).
:Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/wolf/dev/py/py3k/Lib/", line 103, in __call__
    return*args, **kwds)
  File "/home/wolf/dev/py/py3k/Lib/", line 1833, in __call__
  File "/home/wolf/dev/py/py3k/Lib/", line 1886, in help
    else: doc(request, 'Help on %s:', output=self._output)
  File "/home/wolf/dev/py/py3k/Lib/", line 1619, in doc
    pager(render_doc(thing, title, forceload))
  File "/home/wolf/dev/py/py3k/Lib/", line 1409, in pager
  File "/home/wolf/dev/py/py3k/Lib/", line 1431, in <lambda>
    return lambda text: pipepager(text, 'less')
  File "/home/wolf/dev/py/py3k/Lib/", line 1455, in pipepager
  File "/home/wolf/dev/py/py3k/Lib/", line 900, in __exit__
  File "/home/wolf/dev/py/py3k/Lib/", line 1552, in wait
    (pid, sts) = self._try_wait(0)
  File "/home/wolf/dev/py/py3k/Lib/", line 1502, in _try_wait
    (pid, sts) = os.waitpid(, wait_flags)

If I keep pressing Enter the rest of the help gets printed.  Once the pager is done, pressing enter doesn't go on a new line and the prompts (>>>) are printed one after the other on the same line.  The same happens on my shell prompt once I exit from the interpreter. `reset` fixes it.

On Python 2 Ctrl+C does nothing.
Date User Action Args
2015-03-27 17:50:51ezio.melottisetrecipients: + ezio.melotti, r.david.murray, RusiMody, berker.peksag
2015-03-27 17:50:51ezio.melottisetmessageid: <>
2015-03-27 17:50:51ezio.melottilinkissue23792 messages
2015-03-27 17:50:51ezio.melotticreate