Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

def configobj::Section::setdefault (   self,
  key,
  default = None 
)

A version of setdefault that sets sequence if appropriate.

Definition at line 659 of file configobj.py.

00659                                            :
        """A version of setdefault that sets sequence if appropriate."""
        try:
            return self[key]
        except KeyError:
            self[key] = default
            return self[key]

    def items(self):


Generated by  Doxygen 1.6.0   Back to index