[Tutor] lazy? vs not lazy? and yielding

John johnf at jfcomputer.com
Wed Mar 3 18:20:33 CET 2010


Hi,

I just read a few pages of tutorial on list comprehenion and generator 
expression.  From what I gather the difference is "[ ]" and "( )" at the 
ends, better memory usage and the something the tutorial labeled as "lazy 
evaluation".  So a generator 'yields'.  But what is it yielding too?  

John


More information about the Tutor mailing list