This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JelleZijlstra
Recipients JelleZijlstra, Luminair, lys.nikolaou, pablogsal
Date 2022-04-02.15:35:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648913722.92.0.493114323736.issue47202@roundup.psfhosted.org>
In-reply-to
Content
This sort of thing would be better caught by a linter or type checker. For example, mypy with the `--warn-unreachable` option will flag the `while None:` example.

Iterating over an empty list will not currently be caught by mypy, but it's common in real code to iterate over a list that may be empty, so it would be a major compatibility break for Python to error when iterating over an empty list.
History
Date User Action Args
2022-04-02 15:35:22JelleZijlstrasetrecipients: + JelleZijlstra, lys.nikolaou, pablogsal, Luminair
2022-04-02 15:35:22JelleZijlstrasetmessageid: <1648913722.92.0.493114323736.issue47202@roundup.psfhosted.org>
2022-04-02 15:35:22JelleZijlstralinkissue47202 messages
2022-04-02 15:35:22JelleZijlstracreate