from RA_stack import RA_stack class reversible_RA_stack(RA_stack): def reverse(self): self.contents = self.contents[::-1]