Skip to content

Use FileRead and FileWrite in fileio.c on Windows #61923

Open

Description

@jpe
mannequin
BPO 17723
Nosy @vstinner
Files
  • use_filerw.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 = None
    closed_at = None
    created_at = <Date 2013-04-13.21:10:54.124>
    labels = ['type-feature']
    title = 'Use FileRead and FileWrite in fileio.c on Windows'
    updated_at = <Date 2013-04-13.23:19:37.906>
    user = 'https://bugs.python.org/jpe'

    bugs.python.org fields:

    activity = <Date 2013-04-13.23:19:37.906>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2013-04-13.21:10:54.124>
    creator = 'jpe'
    dependencies = []
    files = ['29829']
    hgrepos = []
    issue_num = 17723
    keywords = ['patch']
    message_count = 2.0
    messages = ['186849', '186866']
    nosy_count = 3.0
    nosy_names = ['jpe', 'vstinner', 'sbt']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17723'
    versions = ['Python 3.4']

    Activity

    1. jpe commented on Apr 13, 2013

      jpemannequin
      MannequinAuthor

      File object's can use the win32 api FileRead and FileWrite instead of the CRT's read & write function. This would eliminate the need to set the mode to binary on stdin & stdout, which is the underlying cause of bpo-16587. This could also possibly be the basis of adding nonblocking functionality. An initial patch is attached, but I still need to verify what this does to the CRT mode of files that are opened by python (rather than already be opened, like stdin & stdout are).

    2. added
      type-feature
      on Apr 13, 2013
    3. vstinner commented on Apr 13, 2013

      @vstinner
      Member

      See issue bpo-12939 which contains a patch.

    4. transferred this issue fromon Apr 10, 2022
    5. added
      extension-modules
      on Nov 27, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      extension-modulestype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions