Skip to content

Allow profile/cProfile to be used as context managers #73421

@ThaneBrimhall

Description

@ThaneBrimhall
BPO 29235
Nosy @brettcannon, @methane, @ethanfurman, @serhiy-storchaka, @zhangyangyu, @ssanderson, @csabella
PRs
  • bpo-29235: Make cProfile.Profile a context manager. #6808
  • bpo-29235: Update document for Profiler's context manager #7331
  • Files
  • profileContextManager.patch
  • 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-01-29.13:26:26.543>
    created_at = <Date 2017-01-11.01:13:40.405>
    labels = ['3.8', 'type-feature', 'library']
    title = 'Allow profile/cProfile to be used as context managers'
    updated_at = <Date 2019-01-29.13:26:26.538>
    user = 'https://bugs.python.org/ThaneBrimhall'

    bugs.python.org fields:

    activity = <Date 2019-01-29.13:26:26.538>
    actor = 'cheryl.sabella'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-01-29.13:26:26.543>
    closer = 'cheryl.sabella'
    components = ['Library (Lib)']
    creation = <Date 2017-01-11.01:13:40.405>
    creator = 'Thane Brimhall'
    dependencies = []
    files = ['46295']
    hgrepos = []
    issue_num = 29235
    keywords = ['patch']
    message_count = 10.0
    messages = ['285175', '285535', '285536', '285538', '316533', '318459', '318460', '318471', '318917', '334514']
    nosy_count = 9.0
    nosy_names = ['brett.cannon', 'methane', 'ethan.furman', 'serhiy.storchaka', 'xiang.zhang', 'Scott Sanderson', 'Thane Brimhall', 'cheryl.sabella', 'Scott Sanderson2']
    pr_nums = ['6808', '7331']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue29235'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions