On Sat, 20 Oct 2007 00:26:22 +0000, Matimus wrote:

> The common pattern:
> 
> if __name__ == "__main__":
>   # do stuff
> 
> IMHO better written:
> 
> if "__main__" == __name__:
>     # do stuff

Apart from looking weird, what's the difference?


-- 
Steven.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to