Reorder result tuple of parse_code_object · python/cpython@58e9e03 · GitHub
Skip to content

Commit 58e9e03

Browse files
committed
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.
1 parent d963436 commit 58e9e03

2 files changed

Lines changed: 42 additions & 42 deletions

File tree

Lib/test/test_external_inspection.py

Lines changed: 38 additions & 38 deletions

Modules/_remote_debugging_module.c

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)