Skip to content

Replace ctypes based Windows console calls in _pyrepl #150582

@aisk

Description

@aisk

My preference is still that we ought to be actively migrating from ctypes to a proper native module for these. Performance and reliability will thank us.

Originally posted by @zooba in #132888

  • GetStdHandle (already exist in _winapi)
  • WaitForSingleObject (already exist in _winapi)
  • GetConsoleMode
  • SetConsoleMode
  • GetConsoleScreenBufferInfo
  • ScrollConsoleScreenBufferW
  • ReadConsoleInputW
  • FlushConsoleInputBuffer

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsstdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-refactorCode refactoring (with no changes in behavior)
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions