[Web-SIG] Re: Form field dictionaries

Michael C. Neel neel at mediapulse.com
Fri Oct 24 12:02:18 EDT 2003

> I agree that it's basically decided, but I want to be clear in any
> standard that we develop, exactly what the return types are in that
> case, and/or how to test for one or the other.  E.g. you 
> can't use len()
> because both lists and strings are sequences.  If the way to type test
> the value is going to be "isinstance(val, list)", let's set that in
> stone.

I've always used if type(val) == type([]), because I can never remember
type names =p


More information about the Web-SIG mailing list