Why would I get a TypeEror?

It's me itsme at yahoo.com
Wed Jan 12 12:35:14 EST 2005


For this code snip:

a=3
....
b=(1,len(a))[isinstance(a,(list,tuple,dict))]

Why would I get a TypeError from the len function?

Thanks,





More information about the Python-list mailing list