Skip to content

asyncio.events.BaseDefaultEventLoopPolicy gone from Python 3.14 without prior deprecation #131148

Closed as not planned
@hroncok

Description

@hroncok

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

No one assigned

    Labels

    3.14bugs and security fixesstdlibPython modules in the Lib dirtopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions