A big problem with _name_ == '_main_'

onurays onurays23 at gmail.com
Sun Sep 2 02:44:21 CEST 2007


Oh, i solve the problem. It should be double underscore.. I am so 
careless..!

Onuray.

"onurays" <onurays23 at gmail.com>, haber iletisinde þunlarý 
yazdý:fbd0g8$e3c$1 at aioe.org...
> Hi,
>
> I have begun to teach me Python today. The problem is :
>
>    NameError: name 'name' is not defined.
>
> I am using winXP and i used that:
>
>    if  _name_ == '_main_' :
>        MyClass()
>        gtk.main()
>
> Onuray.
> 





More information about the Python-list mailing list