[Python-Dev] unsubscriptable vs object does not support indexing

Antoine Pitrou solipsis at pitrou.net
Thu Sep 24 02:25:37 CEST 2009


MRAB <python <at> mrabarnett.plus.com> writes:
> 
> It's called a 'subscript' because conventional mathematical notation
> uses subscripting. Newbies might be acquainted with the term 'index'
> from books, where the 'value' is non-numeric. It's a bit unfortunate
> that dicts have keys+value instead of index+value! 

Well, "index" for me points to the mathematical notion of an index, which AFAIK
is always numeric. So it would be a mistake to use that term for dicts.

Regards

Antoine.




More information about the Python-Dev mailing list