def get_default_values(self):
if not self.process_default_values:<EOL><INDENT>return optparse.Values(self.defaults)<EOL><DEDENT>defaults = self.update_defaults(self.defaults.copy())  <EOL>for option in self._get_all_options():<EOL><INDENT>default = defaults.get(option.dest)<EOL>if isinstance(default, basestring):<EOL><INDENT>opt_str = option.get_opt_string()<EOL>defaults[option.dest] = option.check_value(opt_str, default)<EOL><DEDENT><DEDENT>return optparse.Values(defaults)<EOL>
Overridding to make updating the defaults after instantiation of
the option parser possible, update_defaults() does the dirty work.