Closed as not planned
Closed as not planned
Copy link
Description
Bug report
Bug description:
from asyncio.events import BaseDefaultEventLoopPolicy
This is from https://github.com/MagicStack/uvloop/blob/7bb12a174884b2ec8b3162a08564e5fb8a5c6b39/uvloop/__init__.py#L6 cc @fantix
On Python 3.13, this works.
On Python 3.14 since #128216 this no longer works and raises ImportError
. As far as I know, the class was not deprecated in 3.13 or 3.12.
>>> from asyncio.events import BaseDefaultEventLoopPolicy
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
from asyncio.events import BaseDefaultEventLoopPolicy
ImportError: cannot import name 'BaseDefaultEventLoopPolicy' from 'asyncio.events' (/usr/lib64/python3.14/asyncio/events.py)
The commit message of #128216 does not mention any API removals at all. It has no NEWS either, so I assume this removal was accidental.
CPython versions tested on:
3.14, CPython main branch
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
bugs and security fixesbugs and security fixesPython modules in the Lib dirPython modules in the Lib dirAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done