[issue45759] `elif` inside `if` block is a `SyntaxError`

2021-11-08 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- keywords: +patch pull_requests: +27732 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29481 ___ Python tracker __

[issue45759] `elif` inside `if` block is a `SyntaxError`

2021-11-08 Thread theeshallnotknowethme
New submission from theeshallnotknowethme : While fixing errors in a program, I encountered this: if a == b + 2: c = sqrt(b) + a**2 elif a == b + 3: SyntaxError: Invalid syntax It should be giving an `IndentationError` or a better error message at least. -- components