Specifing arguments type for a function

Paolo Pantaleo paolopantaleo at gmail.com
Tue Jun 20 11:56:44 CEST 2006


I have a function

def f(the_arg):
...

and I want to state that the_arg must be only of a certain type
(actually a list). Is there a way to do that?

Thnx
PAolo

-- 
if you have a minute to spend please visit my photogrphy site:
http://mypic.co.nr



More information about the Python-list mailing list