

7·
22 hours agoYou’ll find that the usual color layout is red/white/blue, not white/blue/red.
You’ll find that the usual color layout is red/white/blue, not white/blue/red.
I prefer “angstschreeuw” as word to annoy foreigners with. 7 consonants in a row!
Man if only that was true. A neighbor across the street is a chain smoker, and I hear him hack up a lung every morning for a couple of hours.
Yeah smoking will make you live shorter, but it’ll also reaaaally fuckin’ ruin your life leading up to that.
Isn’t that character canonically a guy?
I mean yeah with no context that looks weird A/F, but given a couple details it’s fairly self-evident why it be like it do.
__name__
is a global variable containing the name of the current module. There’s a couple more like __file__
containing the filename of the current module.__name__
gets set to "__main__"
. If it got set to something more sensible like "main"
you couldn’t really call a file main.py
without this breaking. Right now this only breaks for files called __main__.py
but luck would have it that calling a file __main__.py
already has a special meaning which makes these uses not clash.__name__
is set to __main__
is the easiest way to do this.Python for sure has a bunch of weirdness, but it all does mesh together into a rather nice programming language.
You’ll find that the usual color layout is red/white/blue, not white/blue/red.