Message244791
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. |
|
Date |
User |
Action |
Args |
2015-06-03 22:42:13 | py.user | set | recipients:
+ py.user, paul.j3, serhiy.storchaka, mbussonn |
2015-06-03 22:42:13 | py.user | set | messageid: <1433371333.66.0.596629910083.issue24338@psf.upfronthosting.co.za> |
2015-06-03 22:42:13 | py.user | link | issue24338 messages |
2015-06-03 22:42:13 | py.user | create | |
|