Content-Length: 341591 | pFad | https://github.com/python/cpython/pull/122072

0E gh-122029: Log call events in sys.setprofile when it's a method with c function by gaogaotiantian · Pull Request #122072 · python/cpython · GitHub
Skip to content

gh-122029: Log call events in sys.setprofile when it's a method with c function#122072

Merged
gpshead merged 3 commits intopython:mainfrom
gaogaotiantian:setprofile-method
Jul 23, 2024
Merged

gh-122029: Log call events in sys.setprofile when it's a method with c function#122072
gpshead merged 3 commits intopython:mainfrom
gaogaotiantian:setprofile-method

Conversation

@gaogaotiantian
Copy link
Copy Markdown
Member

@gaogaotiantian gaogaotiantian commented Jul 21, 2024

Currently sys.setprofile logs the c_return event, but not c_call event, when the function is a PyMethodObject that points to a PyCFunction. This patch fixed that.

@miss-islington-app
Copy link
Copy Markdown

Thanks @gaogaotiantian for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Jul 23, 2024

GH-122205 is a backport of this pull request to the 3.13 branch.

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Jul 23, 2024

GH-122206 is a backport of this pull request to the 3.12 branch.

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

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/122072

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy