[New-bugs-announce] [issue46781] Tracing: c_return doesn't report the result

Matthias Urlichs report at bugs.python.org
Thu Feb 17 13:08:22 EST 2022

New submission from Matthias Urlichs <matthias at urlichs.de>:

When tracing/profiling, the "return" event reports the value returned by the exiting function.

However, this does not work for C functions. The profiler's "c_return" hook is called with the same C function object as "c_call". This unnecessarily complicates debugging and should be fixed.


components: C API
messages: 413421
nosy: smurfix
priority: normal
severity: normal
status: open
title: Tracing: c_return doesn't report the result
type: enhancement
versions: Python 3.10, Python 3.11

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list