Cedric BRINER wrote:
I'm not sure *why* there is this difference between the two types of classes, but there is...

aaaaah... I din't know that there was two kinds of classes. So you mean that, now the new style
object should be like: class A(object): pass

Yes, this is the recommended way to define a class since Python 2.2.

ok, I'll try to find more about this !

This document
http://www.python.org/2.2/descrintro.html
and the two PEPs it links to are the best source of information on new-style classes. Another good summary is here:
http://www.python.org/doc/2.2.3/whatsnew/sect-rellinks.html


Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to