python 3's adoption

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Jan 29 00:34:13 EST 2010


On Thu, 28 Jan 2010 21:26:43 -0500, Roy Smith wrote:

> In article <03720b25$0$1309$c3e8da3 at news.astraweb.com>,
>  Steven D'Aprano <steve at 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



More information about the Python-list mailing list