On 26/11/2013 10:00, Dominik George wrote:
Hi Reuben,
class Animal():
flag = True
print flag
Are you sure you know what this does ;)? Normally, you initialize all
variables in the constructor.
Wrong. You normally initialise names in the initialiser which is called
__init__. The constructor is called __new__.
--
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
Mark Lawrence
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor