class C: vs class C(object):

Lutz Horn dev-random at arcor.de
Thu Jul 19 09:43:02 CEST 2007


Hi,

On Thu, 19 Jul 2007 09:40:24 +0200, Bruno Desthuilliers  
<bruno.42.desthuilliers at wtf.websiteburo.oops.com> wrote:
> there's absolutely no reason to use it no more since "new-style" classes  
> can do anything "Classic" classes did and much more. IOW, don't even  
> bother with old-style classes.

Just for the records: the new and preferred style is

class C(object):
     ...

Regards
Lutz
-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the Python-list mailing list