On 31/07/2019 00:35:59, Eric V. Smith wrote:
On Jul 30, 2019, at 11:38 AM, Guido van Rossum <gu...@python.org> wrote:
..
with connect() as stream: # connect() or __enter__() can fail.
for data in stream: # __next__() can fail
write(data) # write() can fail
This very much looks like toy networking code to me
Because Serhiy presented his idea in just about the simplest, clearest
possible example, rather than something more complicated which a lot of
people might not bother to read.
(Don't get me wrong - I'm not definitely convinced this proposal should
be implemented. I just don't want its merits to be overlooked.)
_______________________________________________
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/JLLONB54M4BK6FA3ZQ6MY2FXLK776R7Q/
Code of Conduct: http://python.org/psf/codeofconduct/