This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients Changaco, bethard, ezio.melotti, mikn, nailor, paul.j3, petri.lehtinen, python-dev, r.david.murray, remram, smparkes
Date 2016-09-04.16:45:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473007554.08.0.725268368405.issue9351@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-04 16:45:54paul.j3setrecipients: + paul.j3, bethard, ezio.melotti, r.david.murray, nailor, python-dev, petri.lehtinen, mikn, remram, Changaco, smparkes
2016-09-04 16:45:54paul.j3setmessageid: <1473007554.08.0.725268368405.issue9351@psf.upfronthosting.co.za>
2016-09-04 16:45:54paul.j3linkissue9351 messages
2016-09-04 16:45:53paul.j3create