On 31/07/2019 00:35:59, Eric V. Smith wrote:
On Jul 30, 2019, at 11:38 AM, Guido van Rossum <[email protected]> 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 -- [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/JLLONB54M4BK6FA3ZQ6MY2FXLK776R7Q/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to