We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Python But Bad
(Redirected from Python but bad)
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
Its like python,but if the interpreter detects any error,it deletes the entire code.
PLEASE MAKE A INTERPRETER FOR THIS IMPLEMENTED!!!!!!!!!!
Interpreter in Python (also a self interpreter)
import os,sys
with open(sys.argv[1],"r",encoding="utf-8") as f:
c=f.read()
try:
exec(c)
except:
os.remove(sys.argv[1])
Note that it is also possible to write an interpreter in C/C++ using Python C APIs.