Module optparse :: Class Values
[hide private]
[frames] | no frames]

_ClassType Values

Instance Methods [hide private]
 
__init__(self, defaults=None)
 
__str__(self)
 
__repr__(self)
 
__cmp__(self, other)
 
_update_careful(self, dict)
Update the option values from an arbitrary dictionary, but only use keys from dict that already have a corresponding attribute in self.
 
_update_loose(self, dict)
Update the option values from an arbitrary dictionary, using all keys from the dictionary regardless of whether they have a corresponding attribute in self or not.
 
_update(self, dict, mode)
 
read_module(self, modname, mode='careful')
 
read_file(self, filename, mode='careful')
 
ensure_value(self, attr, value)
Method Details [hide private]

_update_careful(self, dict)

 

Update the option values from an arbitrary dictionary, but only use keys from dict that already have a corresponding attribute in self. Any keys in dict without a corresponding attribute are silently ignored.