Walk through dictionary keys?
Carsten Gaebler
cg at schlund.de
Tue Dec 19 11:23:37 EST 2000
More information about the Python-list mailing list
Tue Dec 19 11:23:37 EST 2000
- Previous message (by thread): Walk through dictionary keys?
- Next message (by thread): Walk through dictionary keys?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi!
Is there a way of 'walking' through the keys of a dictionary? If I have
a large dictionary I'd like to prevent
for key in d.keys():
do_something
because this makes a copy of all the keys. I'm looking for something
like Perl's "each".
Regards
Carsten.
- Previous message (by thread): Walk through dictionary keys?
- Next message (by thread): Walk through dictionary keys?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list