bpo-44219: Release the GIL during isatty syscalls #28250
Conversation
Release the GIL while performing ``isatty`` system calls on arbitrary file descriptors. In particular, this affects :func:`os.isatty`, :func:`os.device_encoding` and :class:`io.TextIOWrapper`. By extension, :func:`io.open` in text mode is also affected.
LGTM. @serhiy-storchaka: would you mind to have a second look? |
Thanks @vxgmichel for the PR, and @vstinner for merging it |
GH-28255 is a backport of this pull request to the 3.10 branch. |
GH-28256 is a backport of this pull request to the 3.9 branch. |
Release the GIL while performing isatty() system calls on arbitrary file descriptors. In particular, this affects os.isatty(), os.device_encoding() and io.TextIOWrapper. By extension, io.open() in text mode is also affected. (cherry picked from commit 06148b1) Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
Release the GIL while performing isatty() system calls on arbitrary file descriptors. In particular, this affects os.isatty(), os.device_encoding() and io.TextIOWrapper. By extension, io.open() in text mode is also affected. (cherry picked from commit 06148b1) Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
Merged, thanks @vxgmichel! I removed Sphinx syntax from the commit message, but it's good to use it in the NEWS message (rendered at: https://docs.python.org/dev/whatsnew/changelog.html)! |
Release the GIL while performing isatty() system calls on arbitrary file descriptors. In particular, this affects os.isatty(), os.device_encoding() and io.TextIOWrapper. By extension, io.open() in text mode is also affected. (cherry picked from commit 06148b1) Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
Release the GIL while performing isatty() system calls on arbitrary file descriptors. In particular, this affects os.isatty(), os.device_encoding() and io.TextIOWrapper. By extension, io.open() in text mode is also affected. (cherry picked from commit 06148b1) Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
|
|
|
|
|
|
Sorry for the buildbot noise: I'm working on tuning the Fedora and RHEL configure options: python/buildmaster-config#264 I should now be fixed. |
|
Release the GIL while performing
isatty
system calls on arbitrary file descriptors.In particular, this affects
os.isatty
,os.device_encoding
andio.TextIOWrapper
. By extension,io.open
in text mode is also affected.https://bugs.python.org/issue44219