[issue14564] Error running: ( echo 'import os'; echo 'help(os)'; )| python |head

2012-04-12 Thread Peng Yu

New submission from Peng Yu :

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 "", line 2, in 
  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

--
messages: 158154
nosy: Peng.Yu
priority: normal
severity: normal
status: open
title: Error running: ( echo 'import os'; echo 'help(os)'; )| python |head
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue14564>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19155] Display stack info with color in pdb (the "w" command)

2013-10-03 Thread Peng Yu

New submission from Peng Yu:

Currently, the "w" command does not show the stack info in color. I think that 
it might be visually helpful to add some color to emphasize the current frame, 
etc. May I suggest to add this feature to pdb? Thanks.

--
messages: 198916
nosy: Peng.Yu
priority: normal
severity: normal
status: open
title: Display stack info with color in pdb (the "w" command)
type: enhancement

___
Python tracker 
<http://bugs.python.org/issue19155>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com