Ensure the position information in AST nodes created by the parser is always consistent · Issue #93351 · python/cpython (original) (raw)
If we create an AST node with invalid position information, the error is reported in the compiler when it validates the line numbers and end line numbers, which is too far away and debugging this can be quite challenging. To improve the debugging experience, ensure that the parser cannot create an AST node with invalid position information.