This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Calls to C functions using `.__call__` don't get sent to profiler.
Type: behavior Stage:
Components: Interpreter Core, Library (Lib) Versions: Python 3.7, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ppperry
Priority: normal Keywords:

Created on 2017-07-22 12:50 by ppperry, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg298847 - (view) Author: (ppperry) Date: 2017-07-22 12:50
If you create a file called `inputtest.py` with the contents `input.__call__()`, and run the built-in profile module on it, it doesn't notice the call to `input`, and produces a report not including that call.
         4 function calls in 0.000 seconds

   Ordered by: standard name

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.000    0.000    0.000    0.000 :0(exec)
        1    0.000    0.000    0.000    0.000 :0(setprofile)
        1    0.000    0.000    0.000    0.000 inputtest.py:1(<module>)
        1    0.000    0.000    0.000    0.000 profile:0(<code object <module> at 0x00000000029880C0, file "inputtest.py", line 1>)
        0    0.000             0.000          profile:0(profiler)
History
Date User Action Args
2022-04-11 14:58:49adminsetgithub: 75173
2017-07-22 12:50:31ppperrycreate