17.10.21 16:08, Eric V. Smith пише: > Serhiy: could you explain the difference?
The difference between `for x in it: yield x` and `yield from it` is than in the latter case any values passed in with send() and any exceptions passed in with throw() are passed to the underlying iterator if it has the appropriate methods. See https://www.python.org/dev/peps/pep-0380/ . _______________________________________________ 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/GP47EJG36A5UDAXYTY25GMJINKGZOKMD/ Code of Conduct: http://python.org/psf/codeofconduct/