[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
[EMAIL PROTECTED] wrote:
> Some rather unexpected behavior in the set_default/set_defaults
> methods for OptionParser that I noticed recently:
>
import optparse
parser = optparse.OptionParser()
parser.add_option("-r", "--restart", dest="restart", action="store_true")
>
parser.