Mr.SpOOn wrote: > Ho risolto. Nella classe avevo usato il "trucchetto": > > if __name__ == "main" > > però avevo inserito ClasseB dopo il blocco if. Immagino quindi che non > la vedesse per questo.
La convenzione universalmente usata è che questo if, per l'attivazione condizionata del main, sia ultimo nel file. -- Nicola Larosa - http://www.tekNico.net/ Most users don't care about the distinction between GET and POST (sadly, neither do many developers), but I think there is an understanding that links just lead to another page, whereas buttons perform an action. I see no reason to violate this. -- Chris Shiflett, December 2006
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python