[Python-Dev] unscriptable?

Jim Jewett jimjjewett at gmail.com
Sat Apr 19 23:31:12 CEST 2008

> I dispute this. Indices aren't necessarily numeric
> (think of an A-Z file),

Python has recently added an __index__ slot which means "as an
integer, and I really am an integer, I'm not just rounding like
int(3.4) would do"

So in the context of python, an index is numeric, whereas "subscript"
has already been used for hashtables with arbitrary keys.


More information about the Python-Dev mailing list