Checking function calls

Ravi Teja webraviteja at
Tue Mar 7 05:11:10 CET 2006

You can match if the list contains the legal number of arguments with.

Type checking arguments has to be done manually since Python is a
dynamic language. Perhaps, you could try some typechecking decorators.
>From the docs, this one raises TypeCheckError (not TypeError), so you
should do fine.

More information about the Python-list mailing list