Michael Hall <mich...@michaelhall.tech> added the comment:

I don't know if it would be feasible to add this to asyncio, but having a way 
to mark a resource as needing to be deterministically cleaned up at loop close 
could probably solve this as well as the underlying reasons why the transports 
are leaning on __del__ behavior which is an implementation detail (differing 
on, for example, pypy) and probably improve the overall usefulness of 
asyncio.run as well.

An addition like that probably requires more discussion than fixing this crash 
though.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39232>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to