On Tue, 13 Jun 2023 at 21:03, BoppreH via Python-ideas <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/EGCTVJ27ZZJZDMTONCUY3AFRT7L753TD/ Code of Conduct: http://python.org/psf/codeofconduct/
