On 9/10/07, Nagarajan <[EMAIL PROTECTED]> 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).

See
http://www.python.org/doc/newstyle.html
for further reading

francesco
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to