This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients
Date 2007-03-22.04:28:59
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
> I think it would also help if calling a method via super() didn't allow
> positional arguments.

That's absurd, *except* for __init__(), where it could make sense depending on the style of cooperation used.  But not enough to enforce this in the language; in Py3k you will be able to enforce this on a per-class basis.

> Having two mixins with the same method name and
> without a common parent class is just not sane.

Right.  This is a cornerstone of cooperative multiple inheritance that sometimes seems to be forgotten; there is a big difference between defining a method and extending a method, and only extending methods can make super calls.

The __init__ case is an exception, because there's no requirement that a subclass have a signature compatible with the superclass (if you don't get this, read up on constructors in C++ or Java).
History
Date User Action Args
2007-08-23 14:52:37adminlinkissue1683368 messages
2007-08-23 14:52:37admincreate