On Thu, May 19, 2011 at 10:11 PM, Navkirat Singh <n4vpyt...@gmail.com> wrote:
> Thanks Guys...I will look deeper into this. I thought I read somewhere that
> it was required in older python releases, but in newer releases it is not. I
> might be wrong though.

In Python 3.x all classes inherit from object by default, so "class
Foo(object):" and "class Foo:" are equivalent.  In Python 2.x they are
not equivalent, and you should use "class Foo(object):" unless you
have a specific reason not to.

Cheers,
Ian
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to