On 31/07/2019 00:35:59, Eric V. Smith wrote:
On Jul 30, 2019, at 11:38 AM, Guido van Rossum guido@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.)