Re: Printing w/o newlines inside loops - odd behavior

2005-09-13 Thread Jeffrey E. Forcier
Erik: Thanks, that was it! Figured it was something along those lines, but like I said, I didn't know specifically what was going on or what to look for. Larry: That recipe could be useful, thanks a lot :) And thanks for the quick replies, too, you guys are awesome. Regards, Jeff -- http://ma

Re: Printing w/o newlines inside loops - odd behavior

2005-09-13 Thread Larry Bates
Take a look at this recipe which is part of the latest Python Cookbook. I think it will help you. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299207 Larry Bates Jeffrey E. Forcier wrote: > This is a difficult issue to search for, and Googling (and reviewing > the pertinent Python do

Re: Printing w/o newlines inside loops - odd behavior

2005-09-13 Thread Erik Max Francis
Jeffrey E. Forcier wrote: > Doing multiple print statements inside a for loop, using the 'comma at > the end eats the newline' variant, results in zero output until the > loop completes its entire iteration. sys.stdout is line buffered. Put an intervening sys.stdout.flush() in between your prin