[Python-ideas] Just __main__
steve at pearwood.info
Fri Jun 22 03:20:16 CEST 2012
Sven Marnach wrote:
> 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
> import __main__
> 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
Well caught! I think that kills this proposal dead.
More information about the Python-ideas