On Thu, 28 Jan 2010 21:26:43 -0500, Roy Smith wrote: > In article <03720b25$0$1309$c3e8...@news.astraweb.com>, > Steven D'Aprano <st...@remove-this-cybersource.com.au> wrote: > >> In any case, while such a idiom works in code, it plays havoc with the >> interactive interpreter: >> >> >>> while 1: >> ... "pass" >> ... >> 'pass' >> 'pass' >> 'pass' >> 'pass' >> 'pass' > > It's not particularly useful without the quotes either :-)
Of course "while 1: pass" is useless, but it doesn't fill the terminal with thousands of lines of "pass". The point I was making is that the statement pass does nothing, while in the interactive interpreter a string or other object prints to the screen. -- Steven -- http://mail.python.org/mailman/listinfo/python-list