[Web-SIG] Form field dictionaries
Gregory Collins
greg-keyword-python.0eae23 at subrosa.ca
Fri Oct 24 12:50:01 EDT 2003
Simon Willison <cs1spw at bath.ac.uk> writes:
> The extended syntax is there to deal with the very rare case of
> multiple dataa arriving for the same key. Is it really worth doubling
> the length of the code needed to access the form variables for the
> sake of a very rare edge case? This is why I'd prefer to find an
> alternative solution.
So if you access the object as a dictionary, should it behave as
getfirst() or not? I'd argue for the former, in the rare instances
you'd want a list I don't think it's onerous to have to type out
obj.getlist("foo").
Gregory D. Collins
<greg at subrosa.ca>
More information about the Web-SIG
mailing list