Re: Functions, Operators, and Overloading?

2006-07-24 Thread Bruno Desthuilliers
Michael Yanowitz a écrit : > Hello: > >Maybe I am missing something, but from what I've seen, > it is not possible to overload functions in Python. That > is I can't have a > def func1 (int1, string1): >and a > def func1 (int1, int3, string1, string2): > without the second func1 o

Re: Functions, Operators, and Overloading?

2006-07-24 Thread Gerhard Fiedler
On 2006-07-24 15:05:53, Stefan Behnel wrote: Maybe I am missing something, but from what I've seen, it is not possible to overload functions in Python. That is I can't have a def func1 (int1, string1): and a def func1 (int1, int3, string1, string2):

Re: Functions, Operators, and Overloading?

2006-07-24 Thread bearophileHUGS
Michael Yanowitz: > Maybe I am missing something, but from what I've seen, > it is not possible to overload functions in Python. Maybe here you can find some ideas: http://www.artima.com/forums/flat.jsp?forum=106&thread=101605 http://bob.pythonmac.org/archives/2005/03/30/five-minute-multimethods-

Re: Functions, Operators, and Overloading?

2006-07-24 Thread Stefan Behnel
Gerhard Fiedler schrieb: > On 2006-07-24 14:30:31, Brian Beck wrote: > >> Michael Yanowitz wrote: >>>Maybe I am missing something, but from what I've seen, >>> it is not possible to overload functions in Python. That >>> is I can't have a >>> def func1 (int1, string1): >>>and a >>> def

Re: Functions, Operators, and Overloading?

2006-07-24 Thread Terry Reedy
"Michael Yanowitz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello: > > Maybe I am missing something, but from what I've seen, > it is not possible to overload functions in Python. That > is I can't have a > def func1 (int1, string1): > and a > def func1 (int1, int3, str

Re: Functions, Operators, and Overloading?

2006-07-24 Thread Gerhard Fiedler
On 2006-07-24 14:30:31, Brian Beck wrote: > Michael Yanowitz wrote: >>Maybe I am missing something, but from what I've seen, >> it is not possible to overload functions in Python. That >> is I can't have a >> def func1 (int1, string1): >>and a >> def func1 (int1, int3, string1, string2

Re: Functions, Operators, and Overloading?

2006-07-24 Thread Brian Beck
Michael Yanowitz wrote: >Maybe I am missing something, but from what I've seen, > it is not possible to overload functions in Python. That > is I can't have a > def func1 (int1, string1): >and a > def func1 (int1, int3, string1, string2): > without the second func1 overwriting the f

Functions, Operators, and Overloading?

2006-07-24 Thread Michael Yanowitz
Hello: Maybe I am missing something, but from what I've seen, it is not possible to overload functions in Python. That is I can't have a def func1 (int1, string1): and a def func1 (int1, int3, string1, string2): without the second func1 overwriting the first. However, operators