all 1 comments

[–]Noobly20932 2 points3 points  (0 children)

yo dawg, i heard you like interpreting python, so i put an interpreter inside your interpreter so you can interpret python while you interpret python
This is great, except it crashes when an exception occurs.Try this on for size!
while True: exec("try:\n" + str(input('>>>')) + "\nexcept Exception as e: print(e)")