FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-91048: Reorder result tuple of parse_code_object by lkollar · Pull Request #134898 · python/cpython · GitHub

/ cpython Public

gh-91048: Reorder result tuple of parse_code_object - #134898

Merged
pablogsal merged 1 commit into
python:mainfrom
lkollar:reorder-stack-frames
May 31, 2025
Merged

gh-91048: Reorder result tuple of parse_code_object#134898
pablogsal merged 1 commit into
python:mainfrom
lkollar:reorder-stack-frames

Conversation

lkollar commented May 29, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 force-pushed the reorder-stack-frames branch from b128a06 to 58e9e03 Compare May 30, 2025 06:46
lkollar changed the title Reorder result tuple of parse_code_object gh-91048: Reorder result tuple of parse_code_object May 30, 2025
lkollar marked this pull request as ready for review May 30, 2025 06:54
lkollar requested review from 1st1, ambv and pablogsal as code owners May 30, 2025 06:54
pablogsal added skip news needs backport to 3.14 bugs and security fixes labels May 31, 2025
pablogsal enabled auto-merge (squash) May 31, 2025 00:32
pablogsal merged commit 8e8786f into python:main May 31, 2025

Copy link
Copy Markdown

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 Bot commented May 31, 2025

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label May 31, 2025
lkollar deleted the reorder-stack-frames branch June 7, 2025 17:50
pablogsal added a commit that referenced this pull request Jun 11, 2025
#134956)

* gh-91048:  Reorder result tuple of parse_code_object (GH-134898)

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>

* Reorder asyncio

---------

Co-authored-by: László Kiss Kollár <kiss.kollar.laszlo@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 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.
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL