On Fri, Apr 2, 2010 at 9:40 AM, Marius Gedminas wrote:
> On Wed, Mar 31, 2010 at 12:50:33AM +0200, Tarek Ziadé wrote:
>> On Wed, Mar 31, 2010 at 12:08 AM, René Fleschenberg
>> wrote:
>> > Hi,
>> >
>> > The code in bootstrap.py doesn't use the if __name__ == "__main__" idiom.
>> > This can lead to
On Wed, Mar 31, 2010 at 12:50:33AM +0200, Tarek Ziadé wrote:
> On Wed, Mar 31, 2010 at 12:08 AM, René Fleschenberg
> 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
> > stumbl
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?
--
René
On Wed, Mar 31, 2010 at 12:08 AM, René Fleschenberg
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 check
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?
--
René