def getoptlist(self, p):
        """Returns all option values stored that match p as a list."""
        optlist = []
        for k, v in self.pairs:
            if k == p:
                optlist.append(v)
        return optlist
def getoptlist ( self , p ) : optlist = [ ] for k , v in self . pairs : if k == p : optlist . append ( v ) return optlist
Returns all option values stored that match p as a list.