[Web-SIG] Re: Form field dictionaries

David Fraser davidf at sjsoft.com
Fri Oct 24 12:31:13 EDT 2003

Michael C. Neel wrote:

>>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
>I've always used if type(val) == type([]), because I can never remember
>type names =p
If the list is actually a class derived from a list, then that won't 
catch it. That's why isinstance is used here


More information about the Web-SIG mailing list