[Python-Dev] unsubscriptable vs object does not support indexing (original) (raw)
Guido van Rossum guido at python.org
Thu Sep 24 02:31:34 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 ]
On Wed, Sep 23, 2009 at 5:25 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
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.
'Key' and 'index' refer to semantics. 'Subscript' refers to syntax.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- 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 ]