[Python-Dev] PEP for adding an sq_index slot so that any object, a or b, can be used in X[a:b] notation
Travis E. Oliphant
oliphant.travis at ieee.org
Thu Feb 9 23:11:17 CET 2006
Attached is an updated PEP for 357. I think the index concept is better
situated in the PyNumberMethods structure. That way an object doesn't
have to define the Sequence protocol just to be treated like an index.
-Travis
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PEP_index.txt
Url: http://mail.python.org/pipermail/python-dev/attachments/20060209/2abfd318/attachment.txt
More information about the Python-Dev
mailing list