Nov. 25, 2013
7:42 p.m.
On Nov 26, 2013, at 01:12 AM, Steven D'Aprano wrote:
(1) Keep the status quo.
I'd have no problem with this. The current idiom doesn't seem broken to me, nor is it that hard to type. I also don't think it's very hard to discover given how common it is.
if __main__:
If we *had* to make this easier to type, this would be my choice. It doesn't even have to be read-only, given that __name__ can be messed with, but usually isn't. Why then worry about __main__ getting messed with? -Barry