[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)
Terry Reedy tjreedy at udel.edu
Fri Feb 10 06:07:37 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] py3k and not equal; re names
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Add a nbindex slot to PyNumberMethods, and a corresponding index special method. Objects could define a function to place in the sqindex slot that returns an appropriate
I presume 'sq_index' should also be 'nb_index'
- 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] py3k and not equal; re names
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]