[Web-SIG] Form field dictionaries
Simon Willison
cs1spw at bath.ac.uk
Fri Oct 24 13:01:49 EDT 2003
David Fraser wrote:
> It's very difficult to write code by accident that would handle a list
> of values as well as a string.
> So if somebody knows they want a list in certain circumstances, they
> could call getlist()
> But I think the default dictionary return value should be the same as
> getfirst().
> That saves endless checks for lists for those who don't need them.
+1 - that sounds like a nice compromise
Simon
More information about the Web-SIG
mailing list