Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed as not planned
@hroncok

Description

@hroncok
Issue body actions

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 fixesbugs and security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    Status

    Done
    Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.