]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-91048: Reorder result tuple of parse_code_object (GH-134898) (#134956)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Jun 2025 01:33:46 +0000 (03:33 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Jun 2025 01:33:46 +0000 (01:33 +0000)
commitf303532857320ae5686c372face6cadb7aba25d8
tree5bcb9983a041c4ee0c18463f54f3cc4dc09aa490
parent77c4b5d413aae2a219c99f6ef8f095eddfe664b8
[3.14] gh-91048:  Reorder result tuple of parse_code_object (GH-134898) (#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 8e8786f8986353e20c1c4406c34409a6139fa073)

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>
Lib/test/test_external_inspection.py
Modules/_remote_debugging_module.c