[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ideas
Subject: Re: [Python-ideas] Just __main__
From: Steven D'Aprano <steve () pearwood ! info>
Date: 2012-06-22 1:20:16
Message-ID: 4FE3C850.9060508 () pearwood ! info
[Download RAW message or body]
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
> __main__.
Well caught! I think that kills this proposal dead.
--
Steven
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
http://mail.python.org/mailman/listinfo/python-ideas
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic