Skip to content

tokenize.open() leaks an open binary file on TextIOWrapper error #68028

@vstinner

Description

@vstinner
BPO 23840
Nosy @vstinner
Files
  • tokenize_open_bug.py
  • tokenize.patch
  • issue23840.patch
  • tokenize.patch
  • tokenizeV2.patch
  • tokenize.patch: moved buffer outside of try block per storchaka
  • 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 2015-05-25.22:50:49.794>
    created_at = <Date 2015-04-01.11:52:33.230>
    labels = ['easy', 'library', 'performance']
    title = 'tokenize.open() leaks an open binary file on TextIOWrapper error'
    updated_at = <Date 2015-05-25.22:50:49.793>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2015-05-25.22:50:49.793>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-05-25.22:50:49.794>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2015-04-01.11:52:33.230>
    creator = 'vstinner'
    dependencies = []
    files = ['38781', '38792', '38793', '38795', '38796', '38799']
    hgrepos = []
    issue_num = 23840
    keywords = ['patch', 'easy']
    message_count = 18.0
    messages = ['239786', '239787', '239847', '239848', '239850', '239852', '239854', '239857', '239858', '239861', '239862', '239864', '240192', '241988', '241990', '243285', '244057', '244058']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'python-dev', 'introom', 'itsmemattchung']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'needs patch'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue23840'
    versions = ['Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      easyperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions