Message405860
When exec'ing code with an illegal character after the line continuation character '\', python 3.11.0a2 raises this strange exception:
SystemError: Negative size passed to PyUnicode_New
Here's an example where '#' is the illegal character:
exec('1,\\#\n2')
I expected the following exception (which is raised by Python 3.10.0, and also by Python 3.11.0a2 when using eval instead of exec, or when the string content is put into its own file and run as a normal script):
SyntaxError: unexpected character after line continuation character |
|
Date |
User |
Action |
Args |
2021-11-06 13:10:52 | pewscorner | set | recipients:
+ pewscorner |
2021-11-06 13:10:52 | pewscorner | set | messageid: <1636204252.01.0.178939354477.issue45738@roundup.psfhosted.org> |
2021-11-06 13:10:51 | pewscorner | link | issue45738 messages |
2021-11-06 13:10:51 | pewscorner | create | |
|