Skip to content

[3.14] gh-91048: Reorder result tuple of parse_code_object (GH-134898)#134956

Merged
pablogsal merged 3 commits intopython:3.14from
miss-islington:backport-8e8786f-3.14
Jun 11, 2025
Merged

[3.14] gh-91048: Reorder result tuple of parse_code_object (GH-134898)#134956
pablogsal merged 3 commits intopython:3.14from
miss-islington:backport-8e8786f-3.14

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 31, 2025

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

…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>
@pablogsal pablogsal enabled auto-merge (squash) May 31, 2025 00:54
@pablogsal pablogsal merged commit f303532 into python:3.14 Jun 11, 2025
40 checks passed
@miss-islington miss-islington deleted the backport-8e8786f-3.14 branch January 2, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants