Re: 2 questions about scope

From: Neal D. Becker (ndbecker2_at_verizon.net)
Date: 10/25/04


To: python-list@python.org
Date: Mon, 25 Oct 2004 14:57:36 -0400

Josiah Carlson wrote:

>
> Gabriel Zachmann <zach@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.