It should be a name error, perhaps 'Accessed object's name cannot be inferred', or a similar error to UnboundLocalException.
On Mon, May 2, 2016, 17:41 Erik python@lucidity.plus.com wrote:
On 02/05/16 22:34, Koos Zevenhoven wrote:
On Mon, May 2, 2016 at 11:41 PM, MRAB python@mrabarnett.plus.com
wrote:
On 2016-05-02 14:57, Koos Zevenhoven wrote: Anyway, the exception (or warning?) could be raised at compile-time if
the
leading-dot form was used in a 'with' that had more than one expression.
Exactly. A SyntaxError perhaps?
Now you're suggesting a SyntaxError for valid syntax ;)
E.
Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/