2 questions about scope

Neal D. Becker ndbecker2 at verizon.net
Mon Oct 25 20:57:36 CEST 2004


Josiah Carlson wrote:

> 
> Gabriel Zachmann <zach at cs.uni-bonn.de> wrote:
>> 

> 
>> 2. Why is it that 'while', 'for', etc., don't introduce a new block?
>>    (so that variables bound inside those blocks would be local to those
>>    blocks only?)
> 

Actually, these don't introduce a block in c++ either.  The braces do.





More information about the Python-list mailing list