This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petri.lehtinen
Recipients Carl.Friedrich.Bolz, alex, petri.lehtinen, python-dev, rhettinger
Date 2011-11-05.21:46:24
SpamBayes Score 1.673756e-06
Marked as misclassified No
Message-id <20111105214614.GB2203@ihaa>
In-reply-to <1320529054.66.0.861138111684.issue13340@psf.upfronthosting.co.za>
Content
> 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? :)
History
Date User Action Args
2011-11-05 21:46:25petri.lehtinensetrecipients: + petri.lehtinen, rhettinger, Carl.Friedrich.Bolz, alex, python-dev
2011-11-05 21:46:24petri.lehtinenlinkissue13340 messages
2011-11-05 21:46:24petri.lehtinencreate