FOR ... TO fails with inline arithmetic expression in upper bound #125
问题描述When using an arithmetic expression directly inside the upper bound of a The same logic works correctly when the expression is evaluated beforehand and stored in a variable. 复现方法Error version: Produces: Working version: This version works correctly. 版本信息额外说明This may indicate that inline arithmetic expressions inside The issue also appears to trigger cascading internal Python exceptions after the out-of-bounds access. |
Answered by
lightumcc
May 11, 2026
Replies: 2 comments
|
Since |
0 replies
Answer selected by
lightumcc
|
Ahh I see thanks |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since
top - 1is an expression, it needs to be bounded by brackets like this