2 questions about scope

Neal D. Becker ndbecker2 at verizon.net
Mon Oct 25 14:57:36 EDT 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