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

Artem Tepanov report at bugs.python.org
Tue Dec 10 05:40:23 EST 2019


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

Using cmd:
C:\Users\ATepanov>python -V
Python 3.8.0

C:\Users\ATepanov>python C:\Users\ATepanov\Desktop\Outside_The_Loop.py
  File "C:\Users\ATepanov\Desktop\Outside_The_Loop.py", line 3
    break
    ^
SyntaxError: 'break' outside loop


In Interactive:
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:
...     break
...
  File "<stdin>", line 2
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