Do we still need to inherit from "object" to create new-style classes?

John Salerno johnjsal at gmail.com
Mon Jun 20 21:26:03 EDT 2011


I can't quite seem to find the answer to this anywhere. The book I'm
reading right now was written for Python 3.1 and doesn't use (object),
so I'm thinking that was just a way to force new-style classes in 2.x
and is no longer necessary in 3.x. Is that right?

(The documentation doesn't mention object anymore, but elsewhere on
the Python website it says the documentation hasn't been updated for
new-style classes yet, hence my confusion.)

Thanks.



More information about the Python-list mailing list