Benjamin Peterson wrote:
> Consider this error:
>>>> 3["something"]
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: 'int' object is unsubscriptable
> 
> "unscriptable" seems rather ambiguous. How about "[object] cannot be indexed"?
> 

Although I think this is a bit of bike-shedding, I would point out that 
CPython is itself inconsistent about this:

 >>> set([1,2,3])[0]
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
TypeError: 'set' object is unindexable

I tend to agree with Benjamin that "unsubscriptable" is a made-up word, 
but so is "unindexable". So, whatever.

-Scott

-- 
Scott Dial
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to