def clear(self):
        'od.clear() -> None.  Remove all items from od.'
        dict.clear(self)
        self.first_node = None
        self.last_node = None
od.clear() -> None.  Remove all items from od.
recipes/Python/577826_Yet_Another_Ordered_Dictionary/recipe-577826.py