◐ Shell
clean mode source ↗

bpo-28459: Fix _pyio on Cygwin where the msvcrt module is not built by embray · Pull Request #14013 · python/cpython

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benjaminp This is the _pyio module used primarily only in testing. There is no "cygwin equivalent for msvcrt"--why should there be? The closest I can think of is my own PyCygwin package, and it's not part of the standard lib, though I'd be willing to make it so; I'm hardly interested in fighting for a new stdlib package just to fix one bug though.

As was discussed on the issue it would be possible to expose Cygwin's setmode() as os.setmode() but it could be confusing since it does not function the same the FreeBSD setmode().