

def switch_mode(self):
    transitions = {
        RealInteractiveConsole: PseudoInteractiveConsole,
        PseudoInteractiveConsole: RealInteractiveConsole,
    }
    print('')
    print('switching mode!')
    transitions.__class__ = transitions[self.__class__]

dataset/ETHPy150Open inglesp/prescons/build/lib/prescons/prescons.py PresentationConsole.switch_mode/VarMisuse@36/51 `self`->`transitions`