720
Python needs an actual default function
(lemmy.ml)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
I call main() in the if
I always use
..and earlier in the code:
This helps to prevent people from arbitrarily running my code as a library or executable when I don't went them to.
Can you elaborate on this blood magic?
It simply swaps some things around to make things more confusing, then goes into an infinite loop (whether or not you import or execute it standalone). it's no different than just including in the global scope:
I was kinda lazy with the fuckery, tbh. I could have gotten much more confusing, but don't have too much time today. :-)
Lol OK I was wondering how would this run
And yes you should!!