[issue34188] Use dicts to "transform" argparse arguments to values

2018-07-22 Thread Zachary Ware
Zachary Ware added the comment: I like to think I'm fairly reasonable :). You can get what you want by specifying `type=choices_dict.get`, or by extracting from the dict manually after calling `parse_args`. -- nosy: +zach.ware ___ Python tracker

[issue34188] Use dicts to "transform" argparse arguments to values

2018-07-22 Thread Victor Porton
New submission from Victor Porton : The below code produces "rock", but it should produce "a". This (to use dict value instead of the key by argparse result) is both to be a new useful feature (for example to map strings in a command line to certain functions or classes provided as dict value

[issue34188] Use dicts to "transform" argparse arguments to values

2018-07-22 Thread Victor Porton
Change by Victor Porton : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.