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 terry.reedy
Recipients bethard, georg.brandl, terry.reedy, zbysz
Date 2012-01-07.00:57:30
SpamBayes Score 2.1798314e-07
Marked as misclassified No
Message-id <1325897850.79.0.49155697002.issue13720@psf.upfronthosting.co.za>
In-reply-to
Content
The code works fine on 3.2.2, Win7, IDLE, narrowest window possible (about 14 chars), which actually wraps to the window width. (In command window, lines are fixed length and scroll bar is added if window is narrowed.) What system and version are you running? 

The error directly comes from textwrap. In the other hand, textwrap.wrap works with widths down to 1 (on 3.2.2), which suggests that argparse is calling it wrong. Except that it is not on my system. 

Could you add 'print(width)' before the call to textwrap
    return _textwrap.wrap(text, width)
to see if -1 is being passed?
History
Date User Action Args
2012-01-07 00:57:30terry.reedysetrecipients: + terry.reedy, georg.brandl, bethard, zbysz
2012-01-07 00:57:30terry.reedysetmessageid: <1325897850.79.0.49155697002.issue13720@psf.upfronthosting.co.za>
2012-01-07 00:57:30terry.reedylinkissue13720 messages
2012-01-07 00:57:30terry.reedycreate