[issue36066] Add `empty` block to `for` and `while` loops.

2019-02-22 Thread WloHu
WloHu added the comment: Sorry for beeing ignorant about python-ideas. The linked proposal is almost exatly what I've requested here, the differences are that it discusses other keyword alternatives and mine suggests an alternative for making empty generators false. If lack of follow-up

[issue36066] Add `empty` block to `for` and `while` loops.

2019-02-21 Thread WloHu
New submission from WloHu : ### Description Adding `empty` block to loops will extend them to form for-empty-else and while-empty-else. The idea is that `empty` block will execute when loop iteration wasn't performed because iterated element was empty. The idea is taken from Django