Python's idiom for function overloads

Steven Bethard steven.bethard at gmail.com
Tue Feb 1 00:02:18 EST 2005


Frans Englich wrote:
> But in Python, when one wants to be able to pass different data types into a 
> single "entry point" for functionality, how is that best done? To in a 
> function do an if statement with the type() function? 

It often depends a lot on the specific use case...  Do you have a 
particular example in mind?

Steve



More information about the Python-list mailing list