Overloading methods?

Quinn Dunkan quinn at steal.ugcs.caltech.edu
Fri Apr 21 20:49:54 EDT 2000


On Fri, 21 Apr 2000 21:27:41 GMT, Jerome Chan <eviltofu at rocketmail.com> wrote:
>Does this mean that method overloading is not allowed?

Yes.  python doesn't do method overloading (it does overload operators with
some magic method names, though).  Keyword args are quite nice, though.  It's
also possible to use the general purpose **kwargs and then have each method
pick out the args it's interested in.  It's probably safer and nicer to just
have the same signature for all methods of the same name.



More information about the Python-list mailing list