On Tue, 13 Jun 2023 at 21:03, BoppreH via Python-ideas <python-ideas@python.org> wrote: > > Any thoughts on logging a warning, perhaps behind an opt-in flag? I could not > find a single false positive scenario, so I expect the signal-to-noise ratio > to be high and prevent lots of bugs. >
Shadow the iter() function and make your own. That's your opt-in flag. ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/EGCTVJ27ZZJZDMTONCUY3AFRT7L753TD/ Code of Conduct: http://python.org/psf/codeofconduct/