Q: Can methods and functions be overloaded?

Claudius Schnörr schnoerr at mailzone.com
Thu Feb 15 22:40:58 CET 2001


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

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,


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