Decorators and how they relate to Python - A little insight please!

Gabriel Genellina gagsl-py at yahoo.com.ar
Fri Oct 20 02:46:07 EDT 2006


At Friday 20/10/2006 02:38, jmcantrell at gmail.com wrote:

>it's handy for doing things like validation of parameter and return
>types. Like...
>
>@accepts(int,int)
>@returns(int)
>def add(a,b):
>     return a+b

So, it's handy for converting Python into another language :)


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list