<p dir="ltr">It should be a name error, perhaps 'Accessed object's name cannot be inferred', or a similar error to UnboundLocalException.</p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, May 2, 2016, 17:41 Erik <<a href="mailto:python@lucidity.plus.com">python@lucidity.plus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 02/05/16 22:34, Koos Zevenhoven wrote:<br>
> On Mon, May 2, 2016 at 11:41 PM, MRAB <<a href="mailto:python@mrabarnett.plus.com" target="_blank">python@mrabarnett.plus.com</a>> wrote:<br>
>> On 2016-05-02 14:57, Koos Zevenhoven wrote:<br>
>> Anyway, the exception (or warning?) could be raised at compile-time if the<br>
>> leading-dot form was used in a 'with' that had more than one expression.<br>
>><br>
><br>
> Exactly. A SyntaxError perhaps?<br>
<br>
Now you're suggesting a SyntaxError for valid syntax ;)<br>
<br>
E.<br>
<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div>