You may be on to something but the description is a bit dense.

Can you show some examples of how this would work, and contrast those with how the same thing would have to be done without your proposed feature?


On Thu, Sep 10, 2020 at 05:47 <rangapv08@gmail.com> wrote:

Got the argparse() in version 3.8.2 and above the action=CusotmClass can have a user defined custom subclass and override the functionality in the def __init__() method. Along with this can we also have a built in custom method/methods that I can define under this custom Class, so that instead of calling the Action itself I have the option of calling the Action.Method() during the add_argument defintition.




Python-ideas mailing list -- python-ideas@python.org

To unsubscribe send an email to python-ideas-leave@python.org


Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/JBVLH244IKOVLHFBZKC7DDMB6QT2T5QQ/

Code of Conduct: http://python.org/psf/codeofconduct/

--Guido (mobile)