On 21/04/20 10:47 am, Eric Snow wrote:
On Mon, Apr 20, 2020 at 4:23 PM Eric Snow <ericsnowcurrently@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