PEP Parade

Roman Suzi rnd at onego.ru
Fri Mar 8 02:34:26 EST 2002


On Fri, 8 Mar 2002, Tim Peters wrote:

>Quoting Guido's new "Parade of the PEPs" essay at
>
>    http://www.python.org/doc/essays/pepparade.html

Just one comment about

  PEP 270 - uniq method for list objects

- maybe adding dict <-> list conversion functions
will make this automatically?

But how? Perlishly:

dict([1, 2, 3, 4]) -> {1: 2, 3: 4}

or some other way:

dict([1,2], [3,4]) -> {1:3, 2:4}
or
dict([(1,2), (3,4)]) -> {1:3, 2:4}

(so, dict.items() will be automatically reverse operation)

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Friday, March 08, 2002 _/ Powered by Linux RedHat 6.2 _/
_/ "People are always available for work in the past tense." _/





More information about the Python-list mailing list