Proposed new PEP: print to expand generators

Terry Reedy tjreedy at udel.edu
Sun Jun 4 15:09:32 EDT 2006


"Mel Wilson" <mwilson-to at sympatico.ca> wrote in message 
news:ibDgg.74$LV.7874 at news20.bellglobal.com...
> I guess the motivation is the case of people who would set
> up an iterator specifically to print from it.

for i in gen: print i,
print

is rather trivial and gives one the option to control formatting however.

tjr






More information about the Python-list mailing list