Message355700
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) |
|
Date |
User |
Action |
Args |
2019-10-30 09:48:06 | jabesq | set | recipients:
+ jabesq |
2019-10-30 09:48:06 | jabesq | set | messageid: <1572428886.51.0.45563670991.issue38640@roundup.psfhosted.org> |
2019-10-30 09:48:06 | jabesq | link | issue38640 messages |
2019-10-30 09:48:06 | jabesq | create | |
|