Python's idiom for function overloads

Jorgen Grahn jgrahn-nntq at algonet.se
Tue Feb 1 15:14:38 EST 2005


On Tue, 1 Feb 2005 04:17:10 +0000, Frans Englich <frans.englich at telia.com> 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? 

Have a look at this older thread on this subject:

  Subject: Re: Does python support multi prototype.
  Message-ID: <TZydnS8D3rdVbY3cRVn-gA at powergate.ca>

/Jorgen

-- 
  // Jorgen Grahn <jgrahn@       Ph'nglui mglw'nafh Cthulhu
\X/                algonet.se>   R'lyeh wgah'nagl fhtagn!



More information about the Python-list mailing list