def __str__(self):
        """shows contents as if this is a dictionary

        If multiple values exist for a given key, use the last
        one added.
        """
        d = {}
        for k in self.data:
            d[k] = self.data[k][-1]
        return str(d)
shows contents as if this is a dictionary

        If multiple values exist for a given key, use the last
        one added.
        
recipes/Python/173072_OrderedMultiDict/recipe-173072.py