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, -- http://mail.python.org/mailman/listinfo/python-list
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, -- http://mail.python.org/mailman/listinfo/python-list