[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc. (original) (raw)
Guido van Rossum guido at python.org
Wed May 16 03:25:48 CEST 2007
- Previous message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Next message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 well-defined.
--Guido
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. -- Greg
Python-3000 mailing list Python-3000 at python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Next message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]