classification
Title: Remove undocumented and deprecated sys.callstats() function
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords: patch

Created on 2019-06-26 15:26 by vstinner, last changed 2019-06-26 16:01 by vstinner. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 14398 merged vstinner, 2019-06-26 15:29
Messages (2)
msg346634 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-06-26 15:26
In Python 3.6, sys.callstats() was a way to retrieve statistics produced by Python/ceval.c when Python was compiled with a special build option: CALL_PROFILE. The function was implemented with PyEval_GetCallStats().


I removed CALL_PROFILE special build and deprecated sys.callstats() in bpo-28799:

commit a61a54b149cfcbcee15b37f557be730f0e30b6ad
Author: Victor Stinner <victor.stinner@gmail.com>
Date:   Mon Nov 28 12:06:13 2016 +0100

    Issue #28799: Update Misc/SpecialBuilds.txt
    
    Remove CALL_PROFILE.


sys.callstats() always returned None since Python 3.7.


Attached PR removed sys.callstats().
msg346644 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-06-26 16:01
New changeset 69150669f224a1fc47de483557736e725ac5b2a1 by Victor Stinner in branch 'master':
bpo-37414: Remove sys.callstats() (GH-14398)
https://github.com/python/cpython/commit/69150669f224a1fc47de483557736e725ac5b2a1
History
Date User Action Args
2019-06-26 16:01:23vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-06-26 16:01:14vstinnersetmessages: + msg346644
2019-06-26 15:29:15vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request14212
2019-06-26 15:29:10vstinnersettitle: Remove sys.callstats() -> Remove undocumented and deprecated sys.callstats() function
2019-06-26 15:26:46vstinnercreate