[issue39049] Add "elif" to "for_stmt" and "while_stmt"

2019-12-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Changes to the language syntax usually require extensive discussion and a PEP. To move forward, your next step would be to launch a discussion on the python-ideas newsgroup. If the idea advances to an approved PEP, this tracker issue can be re-opened. -

[issue39049] Add "elif" to "for_stmt" and "while_stmt"

2019-12-14 Thread Andrey
Change by Andrey : -- keywords: +patch pull_requests: +17082 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17610 ___ Python tracker ___ _

[issue39049] Add "elif" to "for_stmt" and "while_stmt"

2019-12-14 Thread Andrey
New submission from Andrey : Add an ability to use "elif" in for statement and while statement besides "else" Example Now: ```python3 for i in range(j): ... else: if i > 5: ... else: ... ``` Shall be: ```python3 for i in range(j): ... elif i > 5: ... else: