Inheriting from object
Dave Benjamin
dave.benjamin at gmail.com
Thu Jun 30 01:33:39 EDT 2005
Steven Bethard wrote:
> Guido also suggests that the explicit:
>
> class C(object):
> pass
>
> is "much preferred"[2] over:
>
> __metaclass__ = type
>
> class C:
> pass
Really? I have been toying with the idea of using the __metaclass__
trick, since it results in completely valid Jython 2.1 code, as long as
you don't use any of the new-style features.
But once Brian Zimmer gets his broadband fixed, we're supposed to get a
new alpha release. =)
Dave
More information about the Python-list
mailing list