[Python-3000] Iterables and scalars was: sets in P3K?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sun Apr 30 22:32:53 CEST 2006


"Guido van Rossum" <guido at python.org> writes:

> In general dict should not be looked at as an example: the dict
> constructor signature is already too far overloaded, giving a
> different meaning to keyword args, and distinguishing between a
> mapping and a sequence is iffy: it requires a "keys" method which is
> kind of sub-optimal compared to using "iteritems" if it existed...

This would be solved if iteration over a dict produced key/value
pairs.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Python-3000 mailing list