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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

1 participant