Message 322168 - Python tracker

Message322168

Author porton
Recipients bethard, porton, rhettinger, zach.ware
Date 2018-07-22.21:33:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532295213.83.0.56676864532.issue34188@psf.upfronthosting.co.za>
In-reply-to
Content
@Raymond:
"Downstream processing or transformation of inputs is beyond the scope of argparse which should stick to its core responsibilities of argument extraction."

You somehow contradict the official documentation:
"One particularly effective way of handling sub-commands is to combine the use of the add_subparsers() method with calls to set_defaults() so that each subparser knows which Python function it should execute."

The official documentation seems to recommend to pass real Python functions to the parser. So it does do simple "processing or transformation of inputs" which you recommend against.
History
Date User Action Args
2018-07-22 21:33:33portonsetrecipients: + porton, rhettinger, bethard, zach.ware
2018-07-22 21:33:33portonsetmessageid: <1532295213.83.0.56676864532.issue34188@psf.upfronthosting.co.za>
2018-07-22 21:33:33portonlinkissue34188 messages
2018-07-22 21:33:33portoncreate