Function parameter type safety?

George Sakkis george.sakkis at gmail.com
Fri Jul 13 21:24:29 EDT 2007


On Jul 12, 5:52 pm, Robert Dailey <rcdai... at gmail.com> wrote:

> Hi,
>
> Is there a way to force a specific parameter in a function to be a
> specific type?

Yes; have a look at typecheck (http://oakwinter.com/code/typecheck/)
and FormEncode (http://formencode.org/Validator.html).

George




More information about the Python-list mailing list