Author paul.j3
Recipients Christophe.Guillon, abacabadabacaba, amcnabb, andersk, bethard, danielsh, davidben, drm, eric.araujo, eric.smith, gdb, gfxmonk, nelhage, paul.j3, r.david.murray, skilletaudio
Date 2013-03-14.19:38:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363289926.25.0.331612729842.issue9334@psf.upfronthosting.co.za>
In-reply-to
Content
We need to be careful about when or where _negative_number_match is changed.
"
We basically do:
parser = argparse.ArgumentParser(...)
parser._negative_number_matcher = re.compile(r'^-.+$')
"

This changes the value for the parser itself, but not for the groups (_optionals, _positionals) or any subparsers. The code takes special care to make sure that the related property: _has_negative_number_optionals is properly shared among all these ActionContainers.
History
Date User Action Args
2013-03-14 19:38:46paul.j3setrecipients: + paul.j3, amcnabb, bethard, eric.smith, eric.araujo, r.david.murray, gfxmonk, andersk, abacabadabacaba, gdb, nelhage, drm, davidben, skilletaudio, Christophe.Guillon, danielsh
2013-03-14 19:38:46paul.j3setmessageid: <1363289926.25.0.331612729842.issue9334@psf.upfronthosting.co.za>
2013-03-14 19:38:46paul.j3linkissue9334 messages
2013-03-14 19:38:46paul.j3create