[EMAIL PROTECTED] wrote:
> Some rather unexpected behavior in the set_default/set_defaults
> methods for OptionParser that I noticed recently:
[...]
> Why does set_default not raise an exception when passed a key that it
> doesn't recognize?
> 
> Bad typysts bewaer.
> 
> The only reason I can think not to raise an exception is so that
> defaults can be defined before the options are added. Is there some
> use case that I'm not thinking of here? I realize that changing this
> could break some existing scripts, but I'm still tempted to file this
> as a bug.
If you file it as a bug then I can assure you that you'll be told of a 
long list of use-cases that depend on that feature.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to