Noam Raphael wrote: > Just out of curiousity - do you remember these reasons?
I don't remember the discussion in detail, but a couple of reasons that come to mind: * It would be confusing to have "x in d" and "for x in d" meaning subtly different things. * It's more efficient to iterate over just the keys, because a tuple has to be created for each item when iterating over (key, value) pairs. It's reasonable that if you want more done, you should have to write more to get it. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com