On Thu, Jul 10, 2008 at 3:14 PM, Ian Kelly <[EMAIL PROTECTED]> wrote: > On Thu, Jul 10, 2008 at 3:11 PM, comex <[EMAIL PROTECTED]> wrote: >> print "I go on hold. I come off hold.\n" * 1000, > > Why, that doesn't use any iterators at all. You obviously don't know > my taste in programming. ;-)
I should point out that if I were going to do it that way, I might prefer: print '\n'.join(itertools.repeat("I go on hold. I come off hold.", 1000)) since the trailing comma is ugly. I realize that some others might feel the same way about str.join syntax, though. Besides, this way we get the iterator back. -root