Peter Otten wrote:

> class M:
>     def foo_one(self):
>         print(self.__class__.__name__, "one")
>     def foo_two(self):
>         print(self.__class__.__name__, "one")
 
Oops, foo_two() should of course print "two", not "one".

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to