It should be a name error, perhaps 'Accessed object's name cannot be inferred', or a similar error to UnboundLocalException.
On 02/05/16 22:34, Koos Zevenhoven wrote:
> On Mon, May 2, 2016 at 11:41 PM, MRAB <firstname.lastname@example.org> 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 ;)
Python-ideas mailing list
Code of Conduct: http://python.org/psf/codeofconduct/