Closed
Description
Bug report
There's a strange pattern used in RERAISE
opcode:
Lines 1174 to 1189 in 4767a6e
Especially these lines:
Lines 1180 to 1187 in 4767a6e
It looks like the assert
call is not needed here:
- In debug builds it will always crash, since
PyLong_Check(lasti)
will always be false - In non-debug builds it will set
SystemError
as it should be (at least, I think so). That's the only line that matchesr'assert\(.*\);\n\s+_PyErr'
I have a PR ready.
Linked PRs
Metadata
Metadata
Assignees
Labels
(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)An unexpected behavior, bug, or errorAn unexpected behavior, bug, or error