[Python-Dev] PEP for adding an sq_index slot so that any object, a or b, can be used in X[a:b] notation
Brett Cannon
brett at python.org
Thu Feb 9 21:28:37 CET 2006
More information about the Python-Dev mailing list
Thu Feb 9 21:28: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] 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 2/9/06, Guido van Rossum <guido at python.org> wrote: > On 2/9/06, Brett Cannon <brett at python.org> wrote: > > > 2) Change the ISINT macro in ceval.c to accomodate objects with the > > > index slot defined. > > > > Maybe the macro should also be renamed? Not exactly testing if > > something is an int anymore if it checks for __index__. > > Have you looked at the code? ceval.c uses this macro only in the slice > processing code. I don't particularly care what it's called... > Yeah, I looked. I just don't want a misnamed macro to start being abused for some odd reason. Might as well rename it while we are thinking about it then let it have a bad name. -Brett
- 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 ]
More information about the Python-Dev mailing list