On Feb 1, 2005, at 23:08, Ismael Garrido wrote:
Hello.
I was just wondering, what magic can you do with classes? I mean, things like "class Name(Exception)" or "class Name(threading.Thread), which other classes are interesting to subclass? I've seen Object too, but I don't understand what it does.
Basically, Object is the class all your classes should be deriving from (when you do that, you're using "new-style classes"). It's the root in the class hierarchy of Python. This gives you access to a lot of nifty features for free, such as properties.
Oh, and the best classes are those you create yourself, of course :D
-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting and sweating as you run through my corridors... How can you challenge a perfect, immortal machine?"
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
