hai shi <shihai1...@126.com> added the comment:

I checked the help format.
the help_lines' width in python2.7 is different python3.

The width is more likely a hardcode in 
https://github.com/python/cpython/blob/2.7/Lib/argparse.py#L165.
, so the help_lines = [u'This is a very long help string. ex: "--s3', 
u's3://my.bucket/dir1/dir2"'](when joining this help_lines it will add a '\n' 
in the middle)

Since python 3.3, the width is a dynamic value in 
https://github.com/python/cpython/blob/master/Lib/argparse.py#L170
, so the help_lines = ['This is a very long help string. ex: 
"--s3\xa0s3://my.bucket/dir1/dir2"']

----------
nosy: +shihai1991

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

Reply via email to