Terry J. Reedy <tjre...@udel.edu> added the comment:

I checked a bit.  All the 'index' entries in the index are about sequences.  
However, https://docs.python.org/3/reference/datamodel.html has this abstract 
(non-Python) description:

"Mappings
    These represent finite sets of objects indexed by arbitrary index sets. The 
subscript notation a[k] selects the item indexed by k from the mapping a; ...
    Dictionaries
        These represent finite sets of objects indexed by nearly arbitrary 
values."

I personally would prefer 'keyed' or 'subscripted' and 'key'to prevent 
confusion.  The entry then switches to the usual Python term 'key'.

"The only types of values not acceptable as keys  ... a key’s hash value ... 
used for keys ..."

https://docs.python.org/3/library/stdtypes.html#mapping-types-dict uses 'index' 
once as a verb, otherwise uses 'key'.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35077>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

  • ... coyot linden
    • ... శ్రీనివాస్ రెడ్డి తాటిపర్తి
    • ... శ్రీనివాస్ రెడ్డి తాటిపర్తి
    • ... Serhiy Storchaka
    • ... Karthikeyan Singaravelan
    • ... coyot linden
    • ... Terry J. Reedy
    • ... Terry J. Reedy
    • ... coyot linden
    • ... Terry J. Reedy
    • ... coyot linden

Reply via email to