Skip to content

fileinput, StringIO, and cStringIO do not support the with protocol #45627

@ygale

Description

@ygale
mannequin
BPO 1286
Nosy @birkenfeld, @abalkin, @orsenthil, @avassalotti, @ezio-melotti, @briancurtin, @ericsnowcurrently
Files
  • with_StringIO.diff: diff against revision 60906
  • issue1286.patch: patch implementing context manager for fileinput
  • 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 2010-07-31.20:08:39.941>
    created_at = <Date 2007-10-16.11:59:56.976>
    labels = ['extension-modules', 'easy', 'type-bug', 'library']
    title = 'fileinput, StringIO, and cStringIO do not support the with protocol'
    updated_at = <Date 2012-11-28.07:00:51.449>
    user = 'https://bugs.python.org/ygale'

    bugs.python.org fields:

    activity = <Date 2012-11-28.07:00:51.449>
    actor = 'eric.snow'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-07-31.20:08:39.941>
    closer = 'georg.brandl'
    components = ['Extension Modules', 'Library (Lib)']
    creation = <Date 2007-10-16.11:59:56.976>
    creator = 'ygale'
    dependencies = []
    files = ['9470', '15355']
    hgrepos = []
    issue_num = 1286
    keywords = ['patch', 'easy']
    message_count = 18.0
    messages = ['56497', '56636', '56643', '56678', '56714', '56740', '56757', '59778', '62595', '95401', '96699', '96944', '112195', '176329', '176361', '176512', '176513', '176518']
    nosy_count = 9.0
    nosy_names = ['georg.brandl', 'belopolsky', 'ygale', 'orsenthil', 'alexandre.vassalotti', 'ezio.melotti', 'brian.curtin', 'eric.snow', 'Wade.Tattersall']
    pr_nums = []
    priority = 'low'
    resolution = 'accepted'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1286'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      easyextension-modulesC modules in the Modules dirstdlibStandard 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