Trees | Indices | Help |
---|
|
Check if the arguments are valid against |fmt_args|. If any constraint is not valid, the function will return raise a TypeError and will set the appropiate string in the raised Exception. If the number of the given arguments are lesser that supposed it will raise TypeError too A proper check of arguments inside functions can be performed using the function 'local()' to retrieve local variables. And get the retrieve arguments |fmt_args| is a collection of tuples (argument_name, argument_value) Example ( ('arg1',fmt_arg1), ('arg2',fmt_arg2), ('arg3',fmt_arg3), ... ) The arguments will be create two checking instances a list and a dictionary. The list checks positional arguments |args|, then when positional arguments are exhausted, named arguments |kwargs| will be checked with the dictionary validator.
|
|||
|
|||
|
|||
|
|||
|
|
|||
Types =
|
|
Types
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Thu Jan 31 08:15:47 2008 | http://epydoc.sourceforge.net |