[issue13720] argparse print_help() fails if COLUMNS is set to a low value

Zbyszek Szmek report at bugs.python.org
Sat Jan 7 10:34:23 CET 2012


Zbyszek Szmek <zbyszek at in.waw.pl> added the comment:

> I am not setting columns, so that might be the important difference.
Yeah, the whole example with IDLE is moot: argparse only checks
$COLUMNS and defaults to 80, so if COLUMNS is not set, you are only
checking if the code works with 80 columns.

Please try my commandline example or set os.environ['COLUMNS'] = 15.
I get the exception in IDLE too.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13720>
_______________________________________


More information about the Python-bugs-list mailing list