def reverse(self):
        """Reverse in place."""
        r = self[:]
        r.reverse()
        self.clear()
        self.extend(r)
def reverse ( self ) : r = self [ : ] r . reverse ( ) self . clear ( ) self . extend ( r )
Reverse in place.