Éric Araujo <mer...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue14149> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com