1 2 3 4 5 6 7 8 9
import sys def error (msg): sys.stderr.write(msg + "\n") class Exception: def __init__ (self, msg): self.msg = msg