What is the difference between "object is unindexable" and "object is
unsubscriptable "?
I would like to test if an object can accept: obj[0]
TypeError: unindexable object
TypeError: unsubscriptable object
It seems like each of these errors can be replaced with a single type error.
unsubscriptable "?
I would like to test if an object can accept: obj[0]
>>from sets import Set
>>Set([1,2])[0]
>>Set([1,2])[0]
>>3[0]
It seems like each of these errors can be replaced with a single type error.
Comment