[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.

https://stackoverflow.com/questions/61067303/get-return-value-of-python-builtin-functions-while-tracing

----------
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>
<https://bugs.python.org/issue46781>
_______________________________________


More information about the New-bugs-announce mailing list