[issue41942] Add if condition for 'for loop'

Ronald Oussoren report at bugs.python.org
Mon Oct 5 08:28:12 EDT 2020


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

This is a language change that has been discussed on the python-ideas list a number of times.

In my opinion adding this would not necessarily be an improvement, especially when names and expressions get longer. You'd also not win a lot compared to your initial pattern, especially because the "continue" statement can be placed on the same line as the if statement itself (for short enough conditions).

This is something that should be discussed on python-ideas, but please investigate what's been discussed before before you do so.

----------
nosy: +ronaldoussoren

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41942>
_______________________________________


More information about the Python-bugs-list mailing list