Re: What do list comprehensions do that generator expressions don't?

2005-04-25 Thread Robert Kern
Mark English wrote: Date: Mon, 25 Apr 2005 08:51:17 -0500 From: Mike Meyer <[EMAIL PROTECTED]> Which means that the real rule should be always use generator expressions, unless you *know* the expression will always fit in memory. Which leads to the obvious question of why the exception. l = [(1,

RE: What do list comprehensions do that generator expressions don't?

2005-04-25 Thread Mark English
> Date: Mon, 25 Apr 2005 08:51:17 -0500 > From: Mike Meyer <[EMAIL PROTECTED]> > Which means that the real rule should be always use generator expressions, > unless you *know* the expression will always fit in memory. > Which leads to the obvious question of why the exception. >>> l = [(1, 2), (