New submission from Giacomo Caironi :
import asyncio
import traceback
from threading import Thread
class Test(Thread):
def __init__(self):
super().__init__()
self.loop = asyncio.new_event_loop()
async def getaddrinfo(self, loop):
try:
print(await
Giacomo Caironi added the comment:
Why do you say that `getaddrinfo()` is called at the interpreter shutdown
state? On my machine it works and the output is [(,
, 6, '', ('216.58.208.132', 8333)),
(, , 17, '',
('216.58.208.132', 8333)), (, , 0
Giacomo Caironi added the comment:
Ok but then why does it work in python3.8 and not in python 3.9?
--
___
Python tracker
<https://bugs.python.org/issue42