This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jabesq
Recipients jabesq
Date 2019-10-30.09:48:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572428886.51.0.45563670991.issue38640@roundup.psfhosted.org>
In-reply-to
Content
In python 3.8 the following code raises an exception, which was not the case with previous python.

```
while False:
    ...
    break
```
It raises the following exception: SyntaxError: 'break' outside loop.
This `while False` loop was used to temporary disable a while loop in our code base.

Workaround to fix this:
```
enable=False
while enable:
    ...
    break
``` (or use the walrus operator)
History
Date User Action Args
2019-10-30 09:48:06jabesqsetrecipients: + jabesq
2019-10-30 09:48:06jabesqsetmessageid: <1572428886.51.0.45563670991.issue38640@roundup.psfhosted.org>
2019-10-30 09:48:06jabesqlinkissue38640 messages
2019-10-30 09:48:06jabesqcreate