[Python-Dev] Lukewarm about range literals (original) (raw)
Ka-Ping Yee ping@lfw.org
Tue, 29 Aug 2000 15:09:46 -0500 (CDT)
- Previous message: [Python-Dev] Lukewarm about range literals
- Next message: [Python-Dev] Lukewarm about range literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 29 Aug 2000, Greg Wilson wrote:
The problem with using ellipsis is that there's no obvious way to include a stride --- how do you hit every second (or n'th) element, rather than every element?
As explained in the examples i posted,
1, 3 .. 20
could produce
(1, 3, 5, 7, 9, 11, 13, 15, 17, 19)
-- ?!ng
- Previous message: [Python-Dev] Lukewarm about range literals
- Next message: [Python-Dev] Lukewarm about range literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]