Module args
source code
This module is an attempt to increment the security of SPyRO, giving
tools to check the type of the arguments passed to functions.
Note: Remote arguments passed by reference are not checked properly,
and must be checked in the returned values.
The form to specify the argument's costraints are given by a format
string, a type or class, or None
If the format is an string, you can specify an OR operation, the
followoing values can be used:
i => int f => float c => complex o => an instance s =>
string u => an unicode string b => boolean data n => None, the
argument can be None l => list t => tuple d => dictionary
If the format is a type, class or a tuple of clases, it will be used
as second argument of the 'isinstace' statement.
If the format is None, then it will not be checked
The format to check arguments must be given in two elements:
positional arguments and named arguments.
|
Arguments
Check if the arguments are valid against |fmt_args|.
|
__doc__
- Value:
"""
This module is an attempt to increment the security of SPyRO, giving
tools to check the type of the arguments passed to functions.
Note: Remote arguments passed by reference are not checked properly, a
nd must
be checked in the returned values.
...
|
|