sys.setprofile
does not dipatch C Extension dunder methods
#134243
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
I am trying to log all the function calls that happen. Within Python, as well as any of the C Extensions. But I see that dunder/magic methods defined within the C extensions are not registered with
sys.setprofile
.Is this the expected behaviour? If yes, are there any other means for me to log such events?
Or is this a bug in CPython?
Code to reproduce:
❯ python ./main.py > output.txt Hello World 19
The text was updated successfully, but these errors were encountered: