#NEWLINE# def get_default_options( options , non_default_options ) : #NEWLINE# #INDENT# '\n    Given a dictionary of options containing the defaults optparse has filled\n    in, and a dictionary of options containing only options parsed from the\n    command line, returns a dictionary containing the default options that\n    remain after removing the default options that were overridden by the\n    options passed on the command line.\n\n    Mathematically, this returns a dictionary with\n    default_options.keys = options.keys() \\ non_default_options.keys()\n    where \\ is the set difference operator.\n    The value of a key present in default_options is the value of the same key\n    in options.\n    ' #NEWLINE# options_dict = vars ( options ) #NEWLINE# non_default_options_dict = vars ( non_default_options ) #NEWLINE# default_options = Values ( dict ( ( ( k , options_dict [ k ] ) for k in options_dict if ( k not in non_default_options_dict ) ) ) ) #NEWLINE# return default_options