[issue25035] Getter/setter for argparse keys

Sworddragon report at bugs.python.org
Wed Sep 9 01:01:55 CEST 2015


New submission from Sworddragon:

On making a look at the argparse documentation to figure out if I can get the value of the choices key of a specific argument after argument parsing or if I have to implement it myself I noticed that there is a getter/setter for the default key (ArgumentParser.get_default and ArgumentParser.set_defaults) but not for the other keys. Maybe this could also be implemented for the other keys, probably as a generic function that takes as an extra argument the requested key.

----------
components: Library (Lib)
messages: 250263
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Getter/setter for argparse keys
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25035>
_______________________________________


More information about the Python-bugs-list mailing list