Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-91048: Reorder result tuple of parse_code_object #134898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025

Conversation

lkollar
Copy link
Contributor

@lkollar lkollar commented May 29, 2025

The standard followed by APIs like pstat.Stats is to take a file, line, function triplet. The parse_code_object function (and callers exposing this in Python like RemoteUnwinder.get_stack_trace) return function, file, line triplets which requires the caller to reorder these when using it in classes like pstat.Stats.

The standard followed by APIs like pstat.Stats is to take a file, line,
function triplet. The parse_code_object function (and callers exposing
this in Python like RemoteUnwinder.get_stack_trace) return function,
file, line triplets which requires the caller to reorder these when
using it in classes like pstat.Stats.
@lkollar lkollar force-pushed the reorder-stack-frames branch from b128a06 to 58e9e03 Compare May 30, 2025 06:46
@lkollar lkollar changed the title Reorder result tuple of parse_code_object gh-91048: Reorder result tuple of parse_code_object May 30, 2025
@lkollar lkollar marked this pull request as ready for review May 30, 2025 06:54
@lkollar lkollar requested review from pablogsal, ambv and 1st1 as code owners May 30, 2025 06:54
@pablogsal pablogsal added skip news needs backport to 3.14 bugs and security fixes labels May 31, 2025
@pablogsal pablogsal enabled auto-merge (squash) May 31, 2025 00:32
@pablogsal pablogsal merged commit 8e8786f into python:main May 31, 2025
48 checks passed
@miss-islington-app
Copy link

Thanks @lkollar for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 31, 2025
…34898)

Reorder result tuple of parse_code_object

The standard followed by APIs like pstat.Stats is to take a file, line,
function triplet. The parse_code_object function (and callers exposing
this in Python like RemoteUnwinder.get_stack_trace) return function,
file, line triplets which requires the caller to reorder these when
using it in classes like pstat.Stats.
(cherry picked from commit 8e8786f)

Co-authored-by: László Kiss Kollár <kiss.kollar.laszlo@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented May 31, 2025

GH-134956 is a backport of this pull request to the 3.14 branch.

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

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.