How about some syntactic sugar for " __name__ == '__main__' "?

Chris Angelico rosuav at gmail.com
Thu Nov 13 08:40:14 EST 2014


On Fri, Nov 14, 2014 at 12:33 AM, Roy Smith <roy at panix.com> wrote:
> ... you also get to not worry
> about what order things are defined.

That's only as regards the interpreter, though. My point has nothing
to do with the order the interpreter sees things, it's all about how
they're laid out for humans to read. For that, I prefer to have
definitions before use.

ChrisA



More information about the Python-list mailing list