semantic question

Gordon McMillan gmcm at hypernet.com
Sat May 15 12:15:38 EDT 1999


Kranio asks:

> I am just studying Python and I read the postscript documentation
> written by Van Rossum, and the Faq. My question is about
> polimorphism. Does python support multiple or single dispatching ?
> How to understand the polimorphic behaviour of module?

Python is completely dynamically bound. There is no overloading, (you 
can often do the same thing by using default args, although you may 
end up doing some type checking). You will always get the proper 
overridden method because the compiler does not resolve anything 
ahead of time.



- Gordon




More information about the Python-list mailing list