[New-bugs-announce] [issue38951] Use threading.main_thread() check in asyncio

Andrew Svetlov report at bugs.python.org
Sun Dec 1 13:38:45 EST 2019

New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:

Now we use private `isinstance(thread, threading._MainThread)` check.

main_thread() function was added in Python 3.4 by me to avoid it.
Sorry, I forgot to update asyncio code.

The fix is trivial, I very appreciate if somebody will take care.

components: asyncio
keywords: easy
messages: 357683
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Use threading.main_thread() check in asyncio
versions: Python 3.8, Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list