Skip to content

Update events and windows_events for asyncio in 3.14#14128

Merged
JelleZijlstra merged 11 commits intomainfrom
asyncio-default-event-loop-policy
May 25, 2025
Merged

Update events and windows_events for asyncio in 3.14#14128
JelleZijlstra merged 11 commits intomainfrom
asyncio-default-event-loop-policy

Conversation

@github-actions

This comment has been minimized.

@sobolevn sobolevn changed the title Update _DefaultEventLoopPolicy for asyncio in 3.14 Update events and windows_events for asyncio in 3.14 May 24, 2025
@github-actions

This comment has been minimized.

@sobolevn sobolevn force-pushed the asyncio-default-event-loop-policy branch from afad6e1 to 9a3eb04 Compare May 24, 2025 08:48
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

"iscoroutinefunction", # from coroutines
"iscoroutine", # from coroutines
"AbstractEventLoopPolicy", # from events
"_AbstractEventLoopPolicy", # from events
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having underscored names in __all__ seems wrong; maybe we should report over in CPython. Looks like it's not new in 3.14 though.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JelleZijlstra JelleZijlstra merged commit a9e7afa into main May 25, 2025
64 checks passed
@JelleZijlstra JelleZijlstra deleted the asyncio-default-event-loop-policy branch May 25, 2025 16:13
@niklasf
Copy link
Copy Markdown
Contributor

niklasf commented Oct 11, 2025

It looks like prefixing these items with underscores was just the way to implement deprecation warnings. They are still accessible under their usual names: https://github.com/python/cpython/blob/ebf955df7a89ed0c7968f79faec1de49f61ed7cb/Lib/asyncio/__init__.py#L54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants