other python ideas

Thomas Thiele thiele at muc.das-werk.de
Tue May 23 14:54:28 CEST 2000


function overloading is a goog idea. It's really the only thing I miss in
python.
But then it must be possible to check different data-types (like in C++).

def foo(   (int)a  ):
    print a, "is a int"

def foo(   (float)a  ):
    print a, " is a float"

def foo( a ):
    print "I'm not interested in the type of a. I'm the really true
pythonfuction."






More information about the Python-list mailing list