This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Joseph.Birr-Pixton
Recipients Joseph.Birr-Pixton
Date 2012-02-28.12:23:54
SpamBayes Score 0.0004448827
Marked as misclassified No
Message-id <1330431835.85.0.549489798388.issue14149@psf.upfronthosting.co.za>
In-reply-to
Content
Say I have an argument with the name 'foo-bar'.  Argparse accepts and parses arguments, but Namespace does not allow me to access the value.

Yes, I can use getattr or Namespace.__dict__.  But that's ugly.
Yes, I can change the name of the argument, but that's not what I want in my help output.

I think it should either:
- Collapse names to valid python identifiers (optparse did this).
- Namespace should act like an object and dict.
History
Date User Action Args
2012-02-28 12:23:55Joseph.Birr-Pixtonsetrecipients: + Joseph.Birr-Pixton
2012-02-28 12:23:55Joseph.Birr-Pixtonsetmessageid: <1330431835.85.0.549489798388.issue14149@psf.upfronthosting.co.za>
2012-02-28 12:23:55Joseph.Birr-Pixtonlinkissue14149 messages
2012-02-28 12:23:55Joseph.Birr-Pixtoncreate