flox <la...@yahoo.fr> added the comment:

Mark,

Thank you for your analysis.

I looked at similar implementation of tp_as_sequence->sq_slice slots in
"stringobject.c" (and tuple, list).
I've added extra controls before the _PySlice_FromIndices call to let it
behave like new-style classes.

I have updated the tests.
It should be safe for 2.7, no?

----------
keywords: +patch
Added file: http://bugs.python.org/file15585/issue7532_classic_getitem.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7532>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to