[Fwd: RE: Lists in classes]

Wildemar Wildenburger wildemar at freakmail.de
Thu Jul 12 19:09:48 EDT 2007


Adam Pletcher wrote:

> I'm curious (and somewhat new to Python)... What's the benefit of
> inheriting from 'object'?
>
> The docs aren't clear on that, nor is that used in the class examples
> I've seen.
> Thanks in advance.
>   
Well, they are, but they are just not well integrated. Which they, the 
docs themselves, admit. The keyword is 'new-style classes'. Have a read 
or two:
<http://www.python.org/doc/newstyle.html>

Maybe this is a better intro, however:
<http://www.geocities.com/foetsch/python/new_style_classes.htm>


Hope that helps.
/W




More information about the Python-list mailing list