Message274369
In http://bugs.python.org/issue27859 I've demonstrated how a subclass of _SubParsersAction can be used to revert the behavior to pre 2.7.9, passing the main namespace to the subparser.
The only other change is to the parser registry:
parser.register('action', 'parsers', MyParserAction)
So there's no need to change the argparse.py file itself. |
|
Date |
User |
Action |
Args |
2016-09-04 16:45:54 | paul.j3 | set | recipients:
+ paul.j3, bethard, ezio.melotti, r.david.murray, nailor, python-dev, petri.lehtinen, mikn, remram, Changaco, smparkes |
2016-09-04 16:45:54 | paul.j3 | set | messageid: <1473007554.08.0.725268368405.issue9351@psf.upfronthosting.co.za> |
2016-09-04 16:45:54 | paul.j3 | link | issue9351 messages |
2016-09-04 16:45:53 | paul.j3 | create | |
|