Skip to content

tempfile.NamedTemporaryFile can close too early if used as iterator #67888

@bkabrda

Description

@bkabrda
mannequin
BPO 23700
Nosy @birkenfeld, @pfmoore, @ncoghlan, @vstinner, @bitdancer, @ethanfurman, @serhiy-storchaka, @wm75
Files
  • python-3.4-tempfile-iter.patch
  • python-3.4-tempfile-iter-v2.patch
  • tempfile_iter_fix.patch: Works, but I don't know why
  • csv_iter_commemt.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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2015-03-20.15:22:24.390>
    created_at = <Date 2015-03-18.15:17:06.581>
    labels = ['type-bug', 'library']
    title = 'tempfile.NamedTemporaryFile can close too early if used as iterator'
    updated_at = <Date 2015-03-22.19:28:57.514>
    user = 'https://bugs.python.org/bkabrda'

    bugs.python.org fields:

    activity = <Date 2015-03-22.19:28:57.514>
    actor = 'vstinner'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2015-03-20.15:22:24.390>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2015-03-18.15:17:06.581>
    creator = 'bkabrda'
    dependencies = []
    files = ['38543', '38556', '38586', '38635']
    hgrepos = []
    issue_num = 23700
    keywords = ['patch']
    message_count = 35.0
    messages = ['238451', '238505', '238506', '238510', '238511', '238512', '238513', '238518', '238575', '238606', '238611', '238613', '238614', '238615', '238617', '238619', '238621', '238622', '238623', '238664', '238677', '238678', '238683', '238691', '238697', '238698', '238699', '238700', '238757', '238895', '238911', '238917', '238918', '238919', '238929']
    nosy_count = 12.0
    nosy_names = ['georg.brandl', 'paul.moore', 'ncoghlan', 'vstinner', 'Arfrever', 'r.david.murray', 'ethan.furman', 'python-dev', 'serhiy.storchaka', 'bkabrda', 'sYnfo', 'wolma']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23700'
    versions = ['Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions