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
Simplify Windows write I/O around consoles on Windows 8+ #121940
In bpo-11395 from 2011, Windows Python needed to check on every write if a write was to a tty / console object and limit the size of the write to avoid an OS error on write. With Windows 8 and above, the Windows subsystem has been updated and this check is no longer necessary. It is also not necessary to split the write into smaller pieces (which resulted in gh-110913 and gh-82052).
Based on PEP 11, the last Windows 8 support ended in 2023, so the isatty + limited write size is no longer needed on any currently supported Windows platform (Pipes are still limited write size).
That large writes work is tested in test_os, test_write_windows_console
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Activity
pythongh-121940: Stop checking isatty on Windows write()
pythongh-121940: Stop checking isatty on Windows write()
pythongh-121940: Stop checking isatty on Windows write()
pythongh-121940: Stop checking isatty on Windows write()
pythongh-121940: Update so write size is limited larger