Function parameter type safety?

George Sakkis george.sakkis at gmail.com
Sat Jul 14 03:24:29 CEST 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