[docs] [issue20598] argparse docs: '7'.split() is confusing magic

Serhiy Storchaka report at bugs.python.org
Thu Jan 28 05:07:00 EST 2016


Serhiy Storchaka added the comment:

Using str.split() for splitting full command line on arguments is anti-idiom. More correct way is to use shlex. But this is overkill for argparse examples (and in most cases we already have a list sys.argv). Explicit lists look clear enough.

The patch LGTM.

----------
assignee: docs at python -> martin.panter
nosy: +serhiy.storchaka
stage: patch review -> commit review

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


More information about the docs mailing list