[issue14149] argparse usage model requires argument names to be python identifiers

Éric Araujo report at bugs.python.org
Wed Feb 29 05:13:39 CET 2012


Éric Araujo <merwok at netwok.org> added the comment:

If argparse munged foo-bar to foo_bar to allow attribute access, then it’d need to disallow ambiguous cases like add_argument('foo_bar', ...); add_argument('foo-bar', ...).  I’m not sure if there is real, sensible code that does that, though.

> Namespace should act like an object and dict.
I don’t understand, can you rephrase?

----------
nosy: +bethard, eric.araujo
title: Argparse usage model requires argument names to be python identifiers -> argparse usage model requires argument names to be python identifiers
versions: +Python 3.3 -Python 2.7

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


More information about the Python-bugs-list mailing list