[Python-3000] Kill "generic functions"!
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Apr 9 02:36:13 CEST 2006
Antoine Pitrou wrote:
> 1. "Overloading" and "overriding" look very much the same for most
> people. In French the same word "surcharge" is used for both.
In statically typed languages, the distinction is that
overloading is resolved at compile time, whereas
overriding is resolved (at least partly) at run time.
In Python, everything is resolved at run time, so
it's all overriding.
> 2. Python does have "operrator overloading".
Although by the above definition, it should really
be called "operator overriding".
--
Greg
More information about the Python-3000
mailing list