Easy Q: dealing with object type

Erik Johnson spam at nospam.org
Wed Feb 2 22:15:53 EST 2005


"Erick" <idadesub at gmail.com> wrote in message
news:1107396669.028096.301290 at g14g2000cwa.googlegroups.com...
> Ah, you're running into the "old-style classes vs. new style classes".
> Try subclassing from "object".
>
> For example:
>
> >>> class A(object):

That works! :) I guess I am fortunate to be running 2.2 - looks kinda ugly
prior to that.

> Check out the following article, it should answer your questions:
>
http://www.python.org/doc/2.2.3/whatsnew/sect-rellinks.html#SECTION000310000000000000000


Thank you both for your replies! :)
-ej





More information about the Python-list mailing list