[Python-Dev] unsubscriptable vs object does not support indexing (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Thu Sep 24 02:25:37 CEST 2009
- Previous message: [Python-Dev] unsubscriptable vs object does not support indexing
- Next message: [Python-Dev] unsubscriptable vs object does not support indexing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
MRAB <python 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.
- Previous message: [Python-Dev] unsubscriptable vs object does not support indexing
- Next message: [Python-Dev] unsubscriptable vs object does not support indexing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]