[Tutor] list comprehension, efficiency?

bob gailer bgailer at gmail.com
Sat Oct 2 17:17:39 CEST 2010


  [snip]

I ran dis on a for loop and the equivalent comprehension.

I was surprised to see almost identical code.

I had assumed (and now wish for) that a comprehension would be a 
primitive written in C and thus much faster!

-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list