function overloading
Mirko Koenig
koenig at v-i-t.de
Sat May 24 11:33:10 EDT 2003
More information about the Python-list mailing list
Sat May 24 11:33:10 EDT 2003
- Previous message (by thread): function overloading
- Next message (by thread): function overloading
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi I serached around the web and some tutorials but i can't finds any documentation about function overloading in python. I want to have 3 functions: def setPos( x, y ): def setPos( pos ): def setPos( object ): ( pos and object are classes i wrote ) I wrote all these functions but only the one that is the least in the code i used. So i can't call setPos( 1,2 ), because def setPos( object ) is used. Is it not possible in python to overload fucntion with the same name? How do you do it? Mirko Koenig
- Previous message (by thread): function overloading
- Next message (by thread): function overloading
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list