Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class debugLogger:
- def write(self, stng):
- x = 1
- sys.stdout = debugLogger()
- >>> class debugLogger:
- ... def write(self, stng):
- ... x = 1
- ... sys.stdout = debugLogger()
- File "<stdin>", line 4
- sys.stdout = debugLogger()
- ^
- SyntaxError: invalid syntax
Advertisement
Add Comment
Please, Sign In to add comment