[Web-SIG] wsgi.url_vars feedback
ianb at colorstudy.com
Wed Nov 1 00:42:43 CET 2006
Robert Brewer wrote:
> 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.
You can't omit something from a two-tuple; it would become ambiguous
one-tuple of course!
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org
More information about the Web-SIG