Isaac Rodriguez wrote:
> I declare property members in both and it seems to work the exact same
> way. I am using Python 2.4, and I was wondering if by default, all
> classes are assumed to be derived from "object". 

No, they are not. It's just that the "basic functionality" seems to work
the same at first glance (i.e. you don't need to learn alot of new
syntax in order to switch from old-style to new-style classes).

Play around with things like dir() and type() on old-style and new-style
classes, and you will soon see differences.

> If not, can someone
> point me to some place where I can learn more about new-style classes
> and their advantages? All the documentation I've found is very vague.

http://www.python.org/download/releases/2.2.3/descrintro/
http://www.cafepy.com/article/python_types_and_objects/python_types_and_objects.html

-- 
René
OpenPGP key id: 0x63B1F5DB
JID: [EMAIL PROTECTED]

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to