Package SPyRO :: Module args
[show private | hide private]
[frames | no frames]

Module SPyRO.args

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.
Classes
Arguments Check if the arguments are valid against |fmt_args|.

Function Summary
  check(fmt, args, kwargs)

Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 http://epydoc.sf.net