A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-February/060548.html below:

[Python-Dev] Old Style Classes Goiung in Py3K

[Python-Dev] Old Style Classes Goiung in Py3K [Python-Dev] Old Style Classes Goiung in Py3KBrett 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
superclasses.

-Brett
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4