I think I'm following the meat of this very interesting page
(http://trac.turbogears.org/turbogears/wiki/PassingArgumentsToCallables),
except for this:
def make_list(c, none=None, *args, **kwargs):
def _call():
return [ [], [('', none)] ][none is not None] + \
c.build_list(*args, **kwargs)
return _call
I'm having trouble parsing all that punctuation and seeing the point
of the "none" parameter. Why isn't this function as follows?
def make_list(c, *args, **kwargs):
def _call():
return c.build_list(*args, **kwargs)
return _call
Thanks -- Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---