Petri Lehtinen <pe...@digip.org> added the comment: > 2) It probably should have been done in _PyEval_SliceIndex().
I saw that other code used the same approach as I used in the fix. The comment above _PyEval_SliceIndex() suggests it's used in other contexts too. It seems that 2.7 uses it to implement the SLICE opcode, while in 3.x it's only used to convert slice-like arguments. What do you suggest? Doing it in _PyEval_SliceIndex() in 2.7 is problematic, as we don't want x[None:2], right? :) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13340> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com