# Bug report This code can be improved: https://github.com/python/cpython/blob/132b6bc98f47a4d897dead8635b5a50a0baee485/Parser/lexer/lexer.c#L143 It would be safer to first check the value of `i` and then try to access `[i]` index. This way it is harder to get read out of bounds. Found by PVS-Studio in https://habr.com/ru/companies/pvs-studio/articles/902048/ <!-- gh-linked-prs --> ### Linked PRs * gh-132770 * gh-132788 <!-- /gh-linked-prs -->