[Python-ideas] Just __main__
sven at marnach.net
Thu Jun 21 19:04:37 CEST 2012
anatoly techtonik schrieb am Mon, 18. Jun 2012, um 18:26:59 +0300:
> How about global __main__ as a boolean?
Currently, __main__ is the name of a module. You can do
to import this module. After this import, __main__ evaluates to True
as a Boolean expression.
I don't think it's a good idea to overload the meaning of the
More information about the Python-ideas