[Python-Dev] PEP for adding an sq_index slot so that any object, a or b, can be used in X[a:b] notation (original) (raw)
Mark Russell mrussell at verio.net
Fri Feb 10 14:08:39 CET 2006
- Previous message: [Python-Dev] PEP for adding an sq_index slot so that any object, a or b, can be used in X[a:b] notation
- Next message: [Python-Dev] PEP for adding an sq_index slot so that any object, a or b, can be used in X[a:b] notation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10 Feb 2006, at 12:45, Nick Coghlan wrote:
An alternative would be to call it "discrete", as that is the key characteristic of an indexing type - it consists of a sequence of discrete values that can be isomorphically mapped to the integers.
Another alternative: as_ordinal. Wikipedia describes ordinals as
"numbers used to denote the position in an ordered sequence" which
seems a pretty precise description of the intended result. The "as_"
prefix also captures the idea that this should be a lossless conversion.
Mark Russell -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20060210/cfc13b05/attachment.htm
- Previous message: [Python-Dev] PEP for adding an sq_index slot so that any object, a or b, can be used in X[a:b] notation
- Next message: [Python-Dev] PEP for adding an sq_index slot so that any object, a or b, can be used in X[a:b] notation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]