[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


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'



More information about the Python-Dev mailing list