Skip to content

Iterating on a zip keeps objects alive longer than expected (test_itertools leaks sometimes references) #86702

@vstinner

Description

@vstinner
BPO 42536
Nosy @tim-one, @rhettinger, @vstinner, @serhiy-storchaka, @pablogsal, @brandtbucher
PRs
  • bpo-42536: GC track recycled tuples #23623
  • [3.9] bpo-42536: GC track recycled tuples (GH-23623) #23651
  • [3.8] bpo-42536: GC track recycled tuples (GH-23623) #23652
  • Files
  • test_zip_leak.py
  • test_zip_leak2.py
  • 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 2020-12-07.20:08:37.997>
    created_at = <Date 2020-12-02.11:48:35.570>
    labels = ['tests', '3.10']
    title = 'Iterating on a zip keeps objects alive longer than expected (test_itertools leaks sometimes references)'
    updated_at = <Date 2020-12-07.20:08:37.997>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-12-07.20:08:37.997>
    actor = 'pablogsal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-12-07.20:08:37.997>
    closer = 'pablogsal'
    components = ['Tests']
    creation = <Date 2020-12-02.11:48:35.570>
    creator = 'vstinner'
    dependencies = []
    files = ['49650', '49651']
    hgrepos = []
    issue_num = 42536
    keywords = ['patch']
    message_count = 39.0
    messages = ['382304', '382305', '382340', '382342', '382344', '382356', '382357', '382358', '382360', '382361', '382362', '382365', '382374', '382375', '382376', '382387', '382388', '382391', '382392', '382395', '382396', '382418', '382424', '382448', '382450', '382451', '382452', '382455', '382457', '382458', '382459', '382460', '382461', '382462', '382476', '382478', '382552', '382678', '382679']
    nosy_count = 6.0
    nosy_names = ['tim.peters', 'rhettinger', 'vstinner', 'serhiy.storchaka', 'pablogsal', 'brandtbucher']
    pr_nums = ['23623', '23651', '23652']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue42536'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixestestsTests in the Lib/test dir

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions