gh-91054: Add code object watchers API by itamaro · Pull Request #99859 · python/cpython · GitHub

github.com

Tin mới

itamaro:codeobject-watchers

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

full comparison gist

This PR implements gh-91054, allowing extensions to set a callback function to be notified on creation and destruction of code objects

: Add API to allow extensions to set callback function …

Add tests for code object watcher

Add docs and news for code watchers

Add API to allow extensions to set callback function on creation and destruction of PyCodeObject #91054

Merge branch 'main' into codeobject-watchers

Add Jaineel Shah (

View reviewed changes

Merge branch 'main' into codeobject-watchers

Add a bit vector to optimize watcher dispatch

View reviewed changes

Learn more about hiding disruptive comments

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

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot wasm32-emscripten node (pthreads) 3.x has failed when building commit 3c137dc.

gh-91054: Revert "gh-91054: Add code object watchers API" #99976

Revert "GH-91054: Add code object watchers API (GH-99859)" This reverts commit 3c137dc613c860f605d3520d7fd722cd8ed79da6.

: Reset static events counts in code watchers tests

GH-91054: Reset static events counts in code watchers tests #99978

https://github.com/python/cpython/tree/main/Tools/wasm

@itamaro https://github.com/python/cpython/tree/main/Tools/wasm covers how to do anything WebAssembly-related.