Specifing arguments type for a function

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Thu Jun 22 17:38:57 EDT 2006


Paolo Pantaleo:
> 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?

I suggest this very good library, typecheck:
http://oakwinter.com/code/typecheck/

Bye,
bearophile




More information about the Python-list mailing list