Follow

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

i would love to make "cram an entire python program into a single expression" A Thing, it's a fun recreational-coding challenge imo

@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 (gitlab.com/PoroCYon/vondehi , 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)

@typhlosion friend that is too many lambda

put some back friend

leave some lambda for the rest of us

@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

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!