Stéphane Wirtel added the comment:

the pydoc module works fine but when I use CTRL-C to quit it, I get this error 
in the terminal.

I think it's an other bug but the traceback is really similar.

Stephane

Traceback (most recent call last):
  File "/Users/stephane/src/projects/externals/cpython/Lib/runpy.py", line 170, 
in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/stephane/src/projects/externals/cpython/Lib/runpy.py", line 85, 
in _run_code
    exec(code, run_globals)
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
2615, in <module>
    cli()
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
2580, in cli
    help.help(arg)
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1862, in help
    elif request: doc(request, 'Help on %s:', output=self._output)
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1600, in doc
    pager(render_doc(thing, title, forceload))
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1408, in pager
    pager(text)
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1428, in <lambda>
    return lambda text: pipepager(text, 'less')
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1450, in pipepager
    pipe.close()
  File "/Users/stephane/src/projects/externals/cpython/Lib/os.py", line 957, in 
close
    returncode = self._proc.wait()
  File "/Users/stephane/src/projects/externals/cpython/Lib/subprocess.py", line 
1581, in wait
    (pid, sts) = self._try_wait(0)
  File "/Users/stephane/src/projects/externals/cpython/Lib/subprocess.py", line 
1529, in _try_wait
    (pid, sts) = _eintr_retry_call(os.waitpid, self.pid, wait_flags)
  File "/Users/stephane/src/projects/externals/cpython/Lib/subprocess.py", line 
502, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt

----------
nosy: +matrixise

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21398>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to