Mark Stern added the comment:

This bit me also. For anybody else reading this, argparsenobug.py includes a 
class that provides a workaround.

python argparsebug.py --help

works, but:

python argparsebug.py --help > <some file>
python argparsebug.py --help | more

give the error.

However:

python argparsenobug.py --help
python argparsenobug.py --help > <some file>
python argparsenobug.py --help | more

all work.

----------
nosy: +markastern
Added file: http://bugs.python.org/file41774/argparsebug.py

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

Reply via email to