https://pastebin.com/rjhZrzpu if anyone is curious about why i call myself a python war criminal
this is a single python expression (you could stick it, without the comments, into an eval statement and it'd work)! it is also a valid python program. in fact, it's a tiny video game
the source is like 1.3kb when you remove all the newlines and syntactically unnecessary spaces. i might try to golf it down further someday
@typhlosion i love it
@typhlosion i don't know what i'm looking at, but i'm scared
@typhlosion evil idea: run it through a compressor and make it decompress itself at startup to make it even smaller
(a quick estimate using vondehi+autovndh (https://gitlab.com/PoroCYon/vondehi , https://gitlab.com/snippets/1800243) gives me 1700ish bytes shrunk to about 1100 (including decompression stub), though making the payload more regular/predictable/... (but a bit larger uncompressed) might help with getting it down to <1k)
@Nentuaby considering im mainly just using nested lambdas as a way to name things, and globals().update (which you can shorten into a one-character function) does the same thing in a slightly different way, i will probably use fewer lambdas in future python-abuse endeavors
i would love to make "cram an entire python program into a single expression" A Thing, it's a fun recreational-coding challenge imo