[Python-Dev] unscriptable? (original) (raw)
Scott Dial scott+python-dev at scottdial.com
Sat Apr 19 01:15:07 CEST 2008
- Previous message: [Python-Dev] unscriptable?
- Next message: [Python-Dev] unscriptable?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Benjamin Peterson wrote:
Consider this error:
3["something"] Traceback (most recent call last): File "", line 1, in 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 "", line 1, in 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 scott at scottdial.com scodial at cs.indiana.edu
- Previous message: [Python-Dev] unscriptable?
- Next message: [Python-Dev] unscriptable?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]