less obvious "super"

Francesco Guerrieri f.guerrieri at gmail.com
Mon Sep 10 14:05:37 CEST 2007

On 9/10/07, Nagarajan <naga86 at gmail.com> wrote:
> What's the difference b/w:
>      class A:
> and
>      class A ( object ):
> Thanks.

The first one declares an old-style class. The second one declares a new
style class.
It's better to use the new-style (always derive from object).

for further reading

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070910/681d4d77/attachment.html>

More information about the Python-list mailing list