Inheriting from object
steven.bethard at gmail.com
Thu Jun 30 02:02:06 CEST 2005
> Surely when they are removed :
> class foo:
> won't become invalid syntax, it will just automatically inherit from
> object ?
Well, Guido views this particular syntax as an "oopsie". It should
actually look like:
Guido also suggests that the explicit:
is "much preferred" over:
__metaclass__ = type
when creating new-style classes. It's not exactly clear where Guido
comes down on your particular issue, but if I had to guess, I would
guess that he prefers the explicit reference to "object".
More information about the Python-list