Skip to content

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.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 31, 2025
@lkollar lkollar deleted the reorder-stack-frames branch June 7, 2025 17:50
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy