[Web-SIG] Form field dictionaries
David Fraser
davidf at sjsoft.com
Wed Oct 29 09:40:42 EST 2003
Barry Warsaw wrote:
>On Wed, 2003-10-29 at 09:29, Gregory (Grisha) Trubetskoy wrote:
>
>
>
>>I am in favor of form['fieldname'] to act the same as getfirst() only if
>>there is a single element, otherwise it should return a list.
>>
>>
>
>+1
>
>
>
-2!
(That's two factorial :-)
I want form['fieldname'] to always return a single element.
You should always know when you're wanting a list.
Returning a list otherwise requires lots of exceptional-case-checking
code that is unneccessary.
But then I'm just repeating myself...
David
More information about the Web-SIG
mailing list