[Python-Dev] Lukewarm about range literals

Peter Schneider-Kamp nowonder@nowonder.de
Tue, 29 Aug 2000 13:41:30 +0000


Greg Wilson wrote:
> 
> BTW, I understand from side conversations that adding a 'keys()' method to
> sequences, so that arbitrary collections could be iterated over using:
> 
>     for i in S.keys():
>         print i, S[i]
> 
> was considered and rejected.  If anyone knows why, I'd be grateful for a
> recap.

If I remember correctly, it was rejected because adding
keys(), items() etc. methods to sequences would make all
objects (in this case sequences and mappings) look the same.

More accurate information from:
http://sourceforge.net/patch/?func=detailpatch&patch_id=101178&group_id=5470

Peter
-- 
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter@schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de