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 Peng.Yu
Recipients Peng.Yu
Date 2012-04-12.17:27:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334251645.47.0.0743579426512.issue14564@psf.upfronthosting.co.za>
In-reply-to
Content
I get the following error when I run the following command. I think that help may use something that don't work well with pipe. Could anybody take a look?

~/linux/bin/xplat/src/pymisc/pyhelp/main$ ( echo 'import os'; echo 'help(os)'; )| python |head
Help on module os:

NAME
    os - OS routines for Mac, NT, or Posix depending on what system we're on.

FILE
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py

MODULE DOCS
    http://docs.python.org/library/os
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 467, in __call__
    return pydoc.help(*args, **kwds)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1727, in __call__
    self.help(request)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1774, in help
    else: doc(request, 'Help on %s:')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1511, in doc
    pager(render_doc(thing, title, forceload))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1318, in pager
    pager(text)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1416, in plainpager
    sys.stdout.write(plain(text))
IOError: [Errno 32] Broken pipe
~/linux/bin/xplat/src/pymisc/pyhelp/main$ ( echo 'import os'; echo 'help(os)'; )| python
Help on module os:

NAME
    os - OS routines for Mac, NT, or Posix depending on what system we're on.

FILE
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py

MODULE DOCS
    http://docs.python.org/library/os

DESCRIPTION
History
Date User Action Args
2012-04-12 17:27:25Peng.Yusetrecipients: + Peng.Yu
2012-04-12 17:27:25Peng.Yusetmessageid: <1334251645.47.0.0743579426512.issue14564@psf.upfronthosting.co.za>
2012-04-12 17:27:24Peng.Yulinkissue14564 messages
2012-04-12 17:27:24Peng.Yucreate