Inherting from object. Or not.

Peter Hansen peter at engcorp.com
Wed Jan 26 16:30:30 EST 2005


Frans Englich wrote:
> What is the difference between inherting form object, and not doing it? 

Although this doesn't provide a description of all the implications,
it does give you the basic answer to the question and you can easily
do further research to learn more:

http://www.python.org/doc/2.2.1/whatsnew/sect-rellinks.html#SECTION000310000000000000000

(Summary: inheriting from object gives you a "new-style" class,
not doing so gives you a classic class, and there are a
variety of differences resulting from that.)

-Peter



More information about the Python-list mailing list