Skip to content

Align GetAwaitable to Python 3.14.2#6895

Merged
youknowone merged 1 commit intoRustPython:mainfrom
youknowone:get-awaitable
Jan 30, 2026
Merged

Align GetAwaitable to Python 3.14.2#6895
youknowone merged 1 commit intoRustPython:mainfrom
youknowone:get-awaitable

Conversation

@youknowone
Copy link
Copy Markdown
Member

@youknowone youknowone commented Jan 29, 2026

Summary by CodeRabbit

  • New Features

    • More explicit awaitable resolution and validation for await/yield operations, improving handling of objects that provide awaitables.
  • Bug Fixes

    • Clearer, more specific error messages when non-awaitable objects are used in async contexts (including async with).
    • Prevents awaiting the same coroutine more than once, reducing runtime surprises and improving async-with robustness.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor