Q: Can methods and functions be overloaded?
Claudius Schnörr
schnoerr at mailzone.com
Thu Feb 15 16:40:58 EST 2001
Hello,
I would appreciate to write methods for different counts of
arguments, say
f(self, a) and f( self, b, c, d ) or so where b and a have to be handled
differently.
Is this possible? I think no because the second definition of f
overwrites the first one.
Any hints are welcome.
Please email a copy of your answer directly to
Claudius.Schnoerr at ddg.de
Thank you in advance,
Claudius
--
----------------------------------------------------------------
Dr.-Ing. Claudius Schn"orr Tel: ++49-(0)211-5591570
Sigmaringenstr. 2 Fax: ++49-(0)89-2443-45595
40547 D"usseldorf / Germany e-mail: schnoerr at mailzone.com
----------------------------------------------------------------
More information about the Python-list
mailing list