03.09.21 10:28, Thomas Grainger пише: > the way to make an (aysnc)generator that immediately raises > Stop(Async)Iteration immediately is to insert an unreachable `yield` > statement, however there's two ways to do it:
I think it is too uncommon case to specify it in PEP 8. _______________________________________________ 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/M4TIXVDUNKPCHJUR5DNB5QLBYXC5JCWC/ Code of Conduct: http://python.org/psf/codeofconduct/
