On 21/04/20 10:47 am, Eric Snow wrote:
On Mon, Apr 20, 2020 at 4:23 PM Eric Snow <ericsnowcurren...@gmail.com> wrote:
As I've gone to update the PEP for this I'm feeling less comfortable
with changing it.

I don't get this whole business of channels being associated
with interpreters, or why there needs to be a distinction
between release() and close().

To my mind, a channel reference should be like a file
descriptor for a pipe. When you've finished with it, you
close() it. When the last reference to a channel is
closed or garbage collected, the channel disappears.
Why make it any more complicated than that?

You seem to be worried about channels getting leaked if
someone forgets to close them. But it's just the same
for files and pipes, and nobody seems to worry about
that.

--
Greg
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/D4DIHWUGC2LRYUIZ2PICOF6PZY5GKZJP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to