[Web-SIG] wsgi.url_vars feedback
Robert Brewer
fumanchu at amor.org
Tue Oct 31 23:35:07 CET 2006
Ian Bicking wrote:
> Having thought about it, I think storing a tuple of
> (args, kwargs) is the best way to do this, since it's
> most explicit. Consumers can deal with args specially,
> ignore them, or raise an error, as they see fit --
> there are reasons to do each of these. Hiding args
> in kwargs makes this choice more implicit, and probably
> more error prone as a result.
>
> One little question: if a dispatcher can never produce
> one of the kinds of information (which happens for some
> of them), should they put in an empty list/tuple or
> empty dict, or should they put in None for that item?
> I'm currently saying they must put in a list/tuple or dict.
I would've thought they'd just leave out the entry altogether.
Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org
More information about the Web-SIG
mailing list