Message147151
> What do you suggest? Doing it in _PyEval_SliceIndex() in 2.7 is
> problematic, as we don't want x[None:2], right? :)
Eh? Don't we already have this?
Python 2.7.2 (default, Aug 22 2011, 13:53:27)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> range(5)[None:2]
[0, 1]
Or am I misunderstanding? |
|
Date |
User |
Action |
Args |
2011-11-06 11:28:00 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, amaury.forgeotdarc, Carl.Friedrich.Bolz, alex, python-dev, petri.lehtinen |
2011-11-06 11:28:00 | mark.dickinson | set | messageid: <1320578880.8.0.683568485654.issue13340@psf.upfronthosting.co.za> |
2011-11-06 11:28:00 | mark.dickinson | link | issue13340 messages |
2011-11-06 11:28:00 | mark.dickinson | create | |
|