NameError: name '__main__' is not defined

Andre Engels andreengels at
Mon Sep 14 09:01:43 CEST 2009

On Mon, Sep 14, 2009 at 4:29 AM, Sean DiZazzo <half.italian at> wrote:

> Is this a production program that you are using??
> Please show us the point you are trying to make in something more
> valuable.

I find this a very bad comment. Not only is it rude, it is condemning
a behaviour I would see as beneficial. I very much prefer someone
creating a toy program that is as short and simple as possible while
still showing their problem than being forced through hundreds of
lines of code which contain very useful code which however has nothing
to do with the problem at hand.

André Engels, andreengels at

More information about the Python-list mailing list