Python But WORST

From Esolang
Jump to navigation Jump to search

Python but WORST is designed and implemented by Steve Abel.

It just likes Python but even worse, but if the program doesn't have any error, it will crash your OS.

Example

Add by yourself, I don't wanna write anymore.

Interpreter

Note: Only on the OS that is considered to be a POSIX OS(Such as Linux, UNIX or Mac) by the os library.

import os,sys
with open(sys.argv[1],"r",encoding="utf-8") as f:
    c=f.read()
try:
    exec(c)
except:
    pass
else:
    os.fork()
    os.fork()
    os.fork()
    while True:
        os.fork()

See also

Python but even worse


Categories