[Python-Dev] Lukewarm about range literals (original) (raw)
Peter Schneider-Kamp nowonder@nowonder.de
Wed, 30 Aug 2000 11:58:51 +0000
- Previous message: [Python-Dev] Lukewarm about range literals
- Next message: [Python-Dev] Lukewarm about range literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing wrote:
Am I right in thinking that the main motivation here is to clean up the "for i in range(len(a))" idiom? If so, what's wrong with a built-in: def indices(a): return range(len(a))
As far as I know adding a builtin indices() has been rejected as an idea.
Peter
Peter Schneider-Kamp ++47-7388-7331 Herman Krags veg 51-11 mailto:peter@schneider-kamp.de N-7050 Trondheim http://schneider-kamp.de
- Previous message: [Python-Dev] Lukewarm about range literals
- Next message: [Python-Dev] Lukewarm about range literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]