[docs] [issue14149] argparse: Document how to use argument names that are not Python identifiers

Steven Bethard report at bugs.python.org
Wed Feb 29 16:25:32 CET 2012


Steven Bethard <steven.bethard at gmail.com> added the comment:

> making Namespace subscriptable

This has been discussed before - see issue 11076. I prefer to keep Namespace as simple as possible. For subscripting, just use the standard Python idiom of vars as suggested in the docs:

http://docs.python.org/library/argparse.html#the-namespace-object

----------

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


More information about the docs mailing list