-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
asyncio.current_task() is None for asyncio.tasks._PyTask 3.14a6 #131709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
bisecting now |
introduced in 660f126 |
Mixing pure python and C implementation is unsupported. |
all of the combinations are tested and supported cpython/Lib/test/test_asyncio/test_tasks.py Lines 2874 to 2947 in fb17f41
|
If you are creating a pure python task then you need to call the pure python version of current_task i.e. |
ah I see ok |
there's definitely code out there that switches the task to PyTask using the task factory - this could do with a note in the changelog |
Bug report
Bug description:
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: