Skip to content

feat: support Python 3.11 by using _PyInternalFrame directly#137

Merged
copybara-service[bot] merged 0 commit into
mainfrom
test_555272734
Aug 11, 2023
Merged

feat: support Python 3.11 by using _PyInternalFrame directly#137
copybara-service[bot] merged 0 commit into
mainfrom
test_555272734

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented Aug 10, 2023

feat: support Python 3.11 by using _PyInternalFrame directly

Fixes #127

The PyFrameObject structure members have been removed from the public C API in 3.11: https://docs.python.org/3/whatsnew/3.11.html#pyframeobject-3-11-hiding.

Instead, getters are provided which participate in reference counting; since this code runs as part of the SIGPROF handler, it cannot modify Python objects (including their refcounts) and the getters can't be used. Instead, we expose the internal _PyInterpreterFrame and use that directly.

@copybara-service copybara-service Bot force-pushed the test_555272734 branch 2 times, most recently from 17dd89f to d2a25b6 Compare August 10, 2023 04:37
@copybara-service copybara-service Bot changed the title feat: Fix python agent for Python 3.11 by using _PyInternalFrame feat: support Python 3.11 by using _PyInternalFrame directly Aug 10, 2023
@copybara-service copybara-service Bot force-pushed the test_555272734 branch 2 times, most recently from c633f76 to aabb823 Compare August 10, 2023 04:45
@copybara-service copybara-service Bot force-pushed the test_555272734 branch 3 times, most recently from d4d13e4 to f4628ec Compare August 11, 2023 19:33
@copybara-service copybara-service Bot closed this Aug 11, 2023
@copybara-service copybara-service Bot merged commit 244e7ca into main Aug 11, 2023
@copybara-service copybara-service Bot deleted the test_555272734 branch August 11, 2023 20:05
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.

Cannot compile with Python 3.11

0 participants