Author py.user
Recipients mbussonn, paul.j3, py.user, serhiy.storchaka
Date 2015-06-03.22:42:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433371333.66.0.596629910083.issue24338@psf.upfronthosting.co.za>
In-reply-to
Content
paul j3 wrote:
> It's an attempt to turn such flags into valid variable names.

I'm looking at code and see that he wanted to make it handy for use in a resulting Namespace.

args = argparse.parse_args(['--a-b-c'])
abc = args.a_b_c

If he doesn't convert, he cannot get attribute without getattr().

It's not a UNIX reason.
History
Date User Action Args
2015-06-03 22:42:13py.usersetrecipients: + py.user, paul.j3, serhiy.storchaka, mbussonn
2015-06-03 22:42:13py.usersetmessageid: <1433371333.66.0.596629910083.issue24338@psf.upfronthosting.co.za>
2015-06-03 22:42:13py.userlinkissue24338 messages
2015-06-03 22:42:13py.usercreate