[issue25308] Multiple names can target the same namespace

2015-10-06 Thread paul j3
paul j3 added the comment: What you are asking about is the fact that different arguments can share a 'dest'. https://docs.python.org/3/library/argparse.html#dest The 'append_const' action has an example of shared 'dest'. It says: The 'append_const' action is typically useful when

[issue25308] Multiple names can target the same namespace

2015-10-06 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue25308] Multiple names can target the same namespace

2015-10-04 Thread R. David Murray
R. David Murray added the comment: I'd be willing to bet there are people using this as a feature. I don't think we should make any change here. -- nosy: +r.david.murray ___ Python tracker

[issue25308] Multiple names can target the same namespace

2015-10-03 Thread Sworddragon
New submission from Sworddragon: In the argparse module I'm noticing that for example an optional argument and a positional argument can target the same namespace. Here is a testcase: #!/usr/bin/python3 -BEOObbs # coding=utf-8 import argparse arguments = argparse.ArgumentParser()