[issue39013] SyntaxError: 'break' outside loop for legal Expression

Artem Tepanov report at bugs.python.org
Tue Dec 10 05:44:15 EST 2019


Artem Tepanov <a.tepanov at gmail.com> added the comment:

Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> while False:
...     if False:
...         break
...
  File "<stdin>", line 3
SyntaxError: 'break' outside loop

----------

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


More information about the Python-bugs-list mailing list