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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4