[Python-3000] pep 3124 plans
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Jul 21 11:56:10 CEST 2007
Talin wrote:
> Overloading a class method requires special treatment of the 'self'
> parameter because there's an implicit constraint on what types of
> objects can be passed as 'self'
Hang on a minute. Is it really necessary for the GF
machinery to concern itself with this? By the time
you get to the (possibly overloaded) method object,
dispatching on 'self' has already been done. So the
GF machinery can just ignore 'self' and dispatch on
the rest of the arguments -- can't it?
--
Greg
More information about the Python-3000
mailing list