Message147117
> 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? :) |
|
Date |
User |
Action |
Args |
2011-11-05 21:46:25 | petri.lehtinen | set | recipients:
+ petri.lehtinen, rhettinger, Carl.Friedrich.Bolz, alex, python-dev |
2011-11-05 21:46:24 | petri.lehtinen | link | issue13340 messages |
2011-11-05 21:46:24 | petri.lehtinen | create | |
|