[issue14233] argparse: "append" action fails to override default values

2012-03-09 Thread R. David Murray
R. David Murray added the comment: I agree with Eric. I've run in to this error, and immediatly figured out what I'd done wrong based on the existing error message. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed _

[issue14233] argparse: "append" action fails to override default values

2012-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think it's worth checking that you've passed in the correct type for the default parameter. That's not something that Python code typically does. The error you get: AttributeError: 'tuple' object has no attribute 'append' seem pretty clear. Pass in a li

[issue14233] argparse: "append" action fails to override default values

2012-03-08 Thread guilherme-pg
Changes by guilherme-pg : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14233] argparse: "append" action fails to override default values

2012-03-08 Thread guilherme-pg
New submission from guilherme-pg : Trying to set a default value to arguments whose action is "append" causes argparse to raise AttributeError when such arguments are provided in the command line (see attached test case t1.py). This happens because _AppendAction doesn't expect the presence of