python / python/cpython

Add context manager to temporarily disable GC

未关闭
#75,537 63 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

interpreter-core stdlib type-feature
主要语言
Python
星标
77.2k
派生
36k
平均合并
1 天 9 小时
30 天内合并 PR
558

描述

BPO 31356
Nosy @rhettinger, @gpshead, @ncoghlan, @pitrou, @ned-deily, @pmp-p, @ericsnowcurrently, @serhiy-storchaka, @1st1, @MojoVampire, @YoSTEALTH, @bharel, @lisroach, @pablogsal, @sweeneyde, @Jongy
PRs
  • python/cpython#4224
  • python/cpython#5456
  • python/cpython#5462
  • python/cpython#5495
  • python/cpython#5496
  • 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 = None
    created_at = <Date 2017-09-05.23:47:23.956>
    labels = ['interpreter-core', '3.8', 'type-feature', 'library']
    title = 'Add context manager to temporarily disable GC'
    updated_at = <Date 2021-05-01.15:07:54.862>
    user = 'https://github.com/rhettinger'
    

    bugs.python.org fields:

    activity = <Date 2021-05-01.15:07:54.862>
    actor = 'Yonatan Goldschmidt'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core', 'Library (Lib)']
    creation = <Date 2017-09-05.23:47:23.956>
    creator = 'rhettinger'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31356
    keywords = ['patch']
    message_count = 52.0
    messages = ['301407', '301633', '301636', '301644', '301645', '301710', '301720', '302903', '305402', '306053', '306054', '306071', '306072', '306076', '311167', '311300', '311305', '311312', '311331', '311337', '311340', '311342', '311343', '311344', '311347', '311348', '311350', '311351', '311352', '311356', '311357', '311360', '311362', '311363', '311366', '311372', '311396', '311397', '311402', '311444', '311491', '311494', '311495', '311508', '311512', '311513', '311514', '311566', '311635', '311646', '385213', '385214']
    nosy_count = 16.0
    nosy_names = ['rhettinger', 'gregory.p.smith', 'ncoghlan', 'pitrou', 'ned.deily', 'pmpp', 'eric.snow', 'serhiy.storchaka', 'yselivanov', 'josh.r', 'YoSTEALTH', 'bar.harel', 'lisroach', 'pablogsal', 'Dennis Sweeney', 'Yonatan Goldschmidt']
    pr_nums = ['4224', '5456', '5462', '5495', '5496']
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue31356'
    versions = ['Python 3.8']
    

    Linked PRs
    • gh-154999

    贡献指南

    打开贡献指南

    从这里开始

    1. 先读完整个 Issue,再读项目的贡献指南。
    2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
    3. Fork 仓库,在一个分支上完成修改。
    4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

    调研方向

    未指定源文件或测试。先阅读 issue 讨论和链接的 PR gh-154999,然后找出现有的 GC 入口点及相关测试;当一个经过同意的 context-manager 接口能够可靠地临时禁用并恢复 GC 时,即视为完成。

    由索引模型根据 Issue 内容生成。

    评估

    技术栈
    python
    领域
    backend
    Issue 类型
    功能
    难度
    5/5
    预计耗时
    一周以上
    活跃度
    停滞
    描述清晰度
    需要澄清
    新手友好度
    20/100

    把新 issue 发到你的邮箱

    精选适合新手参与的 GitHub issue 摘要。