python / python/cpython

Add context manager to temporarily disable GC

Open
#75,537 63 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

interpreter-core stdlib type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Description

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

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    No source file or test is named. Start by reading the issue discussion and linked PR gh-154999, then identify the existing GC entry points and related tests; done means an agreed context-manager interface temporarily disables and restores GC reliably.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    backend
    Issue type
    Feature
    Difficulty
    5/5
    Estimated time
    Over a week
    Activity status
    Stale
    Clarity
    Needs clarification
    Newbie friendliness
    20/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.