def option_dict(options):
 d = {}
 for option in options:
  d[option.name] = option
 return d

def option_dict ( options ) : d = { } for option in options : d [ option . name ] = option return d
return a dictionary mapping option names to option instances .