You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows ANSI initialization uses nonexistent subprocess.STD_OUTPUT_HANDLE #721
I checked this on Windows 11 with CPython 3.13.15. hasattr(subprocess, 'STD_OUTPUT_HANDLE') returns True, and its value is 4294967285 (DWORD -11). On Windows, subprocess imports this constant from _winapi; my Linux control returns False.
I also exercised the unchanged initializer with the Windows-10/TTY conditions forced and the native API calls mocked. It reached GetStdHandle and completed without the reported AttributeError. This was not a real Windows 10 console test.
Could you share a failing Windows traceback and Python version?
Activity
hugosmoreira commentedon Oct 26, 2026
I checked this on Windows 11 with CPython 3.13.15.
hasattr(subprocess, 'STD_OUTPUT_HANDLE')returns True, and its value is 4294967285 (DWORD -11). On Windows, subprocess imports this constant from_winapi; my Linux control returns False.I also exercised the unchanged initializer with the Windows-10/TTY conditions forced and the native API calls mocked. It reached GetStdHandle and completed without the reported AttributeError. This was not a real Windows 10 console test.
Could you share a failing Windows traceback and Python version?