[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
Guido van Rossum
guido at python.org
Wed May 16 03:25:48 CEST 2007
Note that Phillip's hypothetical was about it depending on *the order
in which modules are imported*. Super has no such dependency -- it
just depends on the inheritance graph, which is much more
On 5/15/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Christian Tanzer wrote:
> > Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> > > Phillip J. Eby wrote:
> > >
> > > > Imagine what would happen if the results of
> > > > calling super() depended on what order your modules had been imported in!
> > >
> > > Actually, something like this does happen with super.
> > This is true but doesn't matter (which is the beauty of super).
> Only because super methods are written with this
> knowledge in mind, however. Seems to me you ought
> to have something similar in mind when overloading
> a generic function.
> Python-3000 mailing list
> Python-3000 at python.org
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000