[Tutor] question about *args and functions

shawn bright nephish at gmail.com
Fri Jan 26 16:30:03 CET 2007


lo there all,

if i have a function that sometimes needs a value passed to it and sometimes
not, is this where i use *args ?

like this

def some_function(req_var, req_var2, un_req_var):
    do some stuff
    return value

how would i use this if sometimes i need to process un_req_var and sometimes
not ?

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070126/4562cd34/attachment.htm 


More information about the Tutor mailing list