Dict Comprehension ?
Ernst-Ludwig Brust
seinnixgud at online.de
Tue Oct 7 04:14:22 EDT 2008
<bearophileHUGS at lycos.com> schrieb im Newsbeitrag
news:5b9d41e1-4928-4fb5-b79d-4de2d70ddb66 at m74g2000hsh.googlegroups.com...
>
> Instead of creating the list (array) dif, you can create a lazy
> iterator. Then you can fed it to a set.
Thangs,
this idea is not only less storage-consuming but even faster
than the "List-Version".
But, i used the idea of pruebauno,
as this is faster.
Ernst-Ludwig Brust
More information about the Python-list
mailing list