Optional Parameter Requirements

Gabriel Genellina gagsl-py at yahoo.com.ar
Fri Oct 27 16:00:30 EDT 2006


At Friday 27/10/2006 16:35, dhable at gmail.com wrote:

>If I'm building a function to accept optional parameters, do I need to
>allow for the capture of both the positional arguments as well as the
>keyword arguments? If it doesn't make sense to allow keyword arguments,
>can I just write:
>
>def myfunc(a, b, *tup):
>   ...
>
>and be done with it?

Just try and see if it works.
http://docs.python.org/tut/node6.html#SECTION006730000000000000000


-- 
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