[Python-Dev] Old Style Classes Goiung in Py3K

Brett Cannon brett at python.org
Wed Feb 8 19:49:22 CET 2006

On 2/8/06, Georg Brandl <g.brandl at gmx.net> wrote:
> Fuzzyman wrote:
> > Hello all,
> >
> > I understand that old style classes are slated to disappear in Python 3000.
> >
> > Does this mean that the following will be a syntax error :
> >
> > class Something:
> >     pass
> >
> > *or* that instead it will automatically inherit from object ?
> Of course, I would say. There's no reason to forbid this in Py3k.

And you would be right.  Guido has always said that classes would act
as if they inherited from object by default.  There are no plans to
change the syntax of how you can specify inheritance in Python 3.  All
that is changing is what the default is when you specify no


More information about the Python-Dev mailing list