<div dir="ltr"><span class="Apple-style-span" style="font-size: small;">Let me widen the scope of the discussion. I think it's a bit strange that the with statement doesn't have a scope. That is:</span><div><span class="Apple-style-span" style="font-size: small;"><br>
</span></div><div><span class="Apple-style-span" style="font-size: small;"> with f() as x:</span></div><div><span class="Apple-style-span" style="font-size: small;"> body</span></div><div><span class="Apple-style-span" style="font-size: small;"> # x is still defined here</span></div>
<div><span class="Apple-style-span" style="font-size: small;"><br></span></div><div><span class="Apple-style-span" style="font-size: small;">Is this useful? To my thought it would make more sense if it introduced a scope.</span></div>
<div><br></div><div>--- Bruce</div></div>