bpo-32591: Add native coroutine origin tracking by njsmith · Pull Request #5250 · python/cpython · GitHub

github.com

Tin mới

njsmith:bpo-32591-coro-origin-tracking

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Add coro.cr_origin and sys.set_coroutine_origin_tracking_depth

Use coroutine origin information in the unawaited coroutine warning

Stop using set_coroutine_wrapper in asyncio debug mode

In BaseEventLoop.set_debug, enable debugging in the correct thread

Guess I should add myself to ACKS at some point

View reviewed changes

Learn more about hiding disruptive comments

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

https://github.com/notifications/unsubscribe-auth/AAlOaO4NcvwZwIJbftzlLOSgyObtU2imks5tMsJXgaJpZM4RlXZz

Address most of Yury's comments

Switch coroutine origin tracking to a get/set API

Make cr_origin a tuple

awaiting change review

awaiting change review

View reviewed changes

bpo-32636: Fix @asyncio.coroutine debug mode bug exposed by

: Fix @asyncio.coroutine debug mode bug exposed by

AttributeError: module 'asyncio.coroutines' has no attribute 'debug_wrapper' MagicStack/uvloop#126

[BUG] inspect.get*state() does not work for compiled objects on Python ≥3.11 cython/cython#7448

types._GeneratorWrapper is no longer consistent with types.GeneratorType/types.CoroutineType #143552