Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove undocumented and deprecated sys.callstats() function #81595

Closed
vstinner opened this issue Jun 26, 2019 · 2 comments
Closed

Remove undocumented and deprecated sys.callstats() function #81595

vstinner opened this issue Jun 26, 2019 · 2 comments
Labels
3.9 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@vstinner
Copy link
Member

BPO 37414
Nosy @vstinner
PRs
  • bpo-37414: Remove sys.callstats() #14398
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-06-26.16:01:23.419>
    created_at = <Date 2019-06-26.15:26:46.971>
    labels = ['interpreter-core', '3.9']
    title = 'Remove undocumented and deprecated sys.callstats() function'
    updated_at = <Date 2019-06-26.16:01:23.419>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2019-06-26.16:01:23.419>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-06-26.16:01:23.419>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2019-06-26.15:26:46.971>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37414
    keywords = ['patch']
    message_count = 2.0
    messages = ['346634', '346644']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = ['14398']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue37414'
    versions = ['Python 3.9']

    @vstinner
    Copy link
    Member Author

    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 a61a54b
    Author: Victor Stinner <victor.stinner@gmail.com>
    Date: Mon Nov 28 12:06:13 2016 +0100

    Issue bpo-28799: Update [Misc/SpecialBuilds.txt](https://github.com/python/cpython/blob/main/Misc/SpecialBuilds.txt)
    
    Remove CALL_PROFILE.
    

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

    Attached PR removed sys.callstats().

    @vstinner vstinner added 3.9 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Jun 26, 2019
    @vstinner vstinner changed the title Remove sys.callstats() Remove undocumented and deprecated sys.callstats() function Jun 26, 2019
    @vstinner
    Copy link
    Member Author

    New changeset 6915066 by Victor Stinner in branch 'master':
    bpo-37414: Remove sys.callstats() (GH-14398)
    6915066

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant