2013/11/8 Marco Beri <marcob...@gmail.com> > Ti fa schifo così? > class Father(object): > def setUp(self): > print "Padre" > self.childrenSetUp() > > class Children(Father): > def childrenSetUp(self): > print "Figlio" > > x = Children() > x.setUp() > > Abbastanza. :) Ti do un 7+ per l'impegno pero'. :D
> > Altrimenti puoi giocare con le metaclassi, ma per questo ti risponderà > qualcuno più bravo di me :-) > > Mi interessa. Ciao, Giuliano -- Piergiuliano Bossi Blog: http://thinkingbox.wordpress.com/ Twitter: http://twitter.com/thinkingbox (English) Twitter: http://twitter.com/scatolapensante (Italiano) Google+: https://plus.google.com/u/0/108187981162465525118
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python