[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Joshua Chia
Joshua Chia added the comment: Added test case -- resolution: - duplicate status: open - closed Added file: http://bugs.python.org/file29639/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Joshua Chia
Joshua Chia added the comment: Seems to be duplicate of http://bugs.python.org/issue12776 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271 ___

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: test needed - committed/rejected superseder: - argparse: type conversion function should be called only once ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271

[issue13271] When -h is used with argparse, default values that fail should not matter

2012-03-18 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271 ___ ___

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-12-15 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I think http://bugs.python.org/issue12776, which delays type conversions on defaults should solve this problem, right? If you agree, could you add your code here as a test case to that issue and mark this as duplicate? (And yes, I

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-11-02 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Sounds like a but to me, too. -- stage: - test needed versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271 ___ ___ Python-bugs-list

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’d argue this is a behavior bug that could be fixed in 2.7 and 3.2 too, but Steven will decide. -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-26 Thread Joshua Chia
New submission from Joshua Chia joshc...@gmail.com: What steps will reproduce the problem? 1. Make a script containing this code: parser = argparse.ArgumentParser() parser.add_argument('-i', '--input-base-directory', type=argparse.FileType('r'),

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-26 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +bethard, eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271 ___ ___