PEP 234: Iterators
Roman Suzi
rnd at onego.ru
Wed May 2 07:44:55 EDT 2001
On 2 May 2001, Michael Hudson wrote:
>"Peter Caven" <p.caven at ieee.org> writes:
>
>> I really like the idea of returning different kinds of iterators for
>> dictionaries as described:
>>
>> > for key, value in dict.iteritems(): ...
>> > for value in dict.itervalues(): ...
>> > for key in dict.iterkeys(): ...
>
>Me too.
What about xitems, xvalues, xkeys (as in xrange?)
Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Wednesday, May 02, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Cats have nine lives - but sleep through eight of them." _/
More information about the Python-list
mailing list