[Distutils] zc.buildout: bootstrap.py script

Tarek Ziadé ziade.tarek at gmail.com
Wed Mar 31 00:50:33 CEST 2010


On Wed, Mar 31, 2010 at 12:08 AM, René Fleschenberg
<rene at fleschenberg.net> wrote:
> Hi,
>
> The code in bootstrap.py doesn't use the if __name__ == "__main__" idiom.
> This can lead to funny behaviour if it is imported for some reason (I
> stumbled upon this in conjunction with nose).
>
> Is there a reason for not checking for __name__ == "__main__", or should
> this be changed?

I don't see any goog reason not to have a __main__ section,

+1 for changing this


>
> --
> René Fleschenberg
>
> Am Stadtgarten 28, 45276 Essen, Germany
> Phone: +49 1577 170 7363
> E-Mail: rene at fleschenberg.net
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
>



-- 
Tarek Ziadé | http://ziade.org


More information about the Distutils-SIG mailing list