Dict Comprehension ?

Ernst-Ludwig Brust seinnixgud at online.de
Tue Oct 7 04:21:52 EDT 2008


"Ben Finney" <bignose+hates-spam at benfinney.id.au> schrieb im Newsbeitrag 
news:874p3pmepu.fsf at benfinney.id.au...
> "Ernst-Ludwig Brust" <seinnixgud at online.de> writes:
>
> So, generator expressions can be a powerful way to clarify the purpose
> of a section of code. They can be over-used, though: don't use them
> unless they actually *do* clarify the code; sometimes an explicit
> looping construct is clearer.

Thangs,
my opinion was, that "one-statement-constructions" are
much faster then f.e. explicit loops.
But,
now i know, with Python, this is not allways true.

Ernst-Ludwig Brust 





More information about the Python-list mailing list