[issue34939] Possibly spurious SyntaxError: annotated name can't be global

Serhiy Storchaka report at bugs.python.org
Tue Oct 9 11:58:13 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This looks similar to say

    x = 1
    global x

It is an error in a file, but is not an error in interactive mode.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34939>
_______________________________________


More information about the Python-bugs-list mailing list