diff options
author | Dong-hee Na <donghee.na@python.org> | 2022-11-29 22:58:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 22:58:20 (GMT) |
commit | 8bb2303fd75c299d8fc85229889ac75e867c135c (patch) | |
tree | 554b8be7af106eb3cf6519ca06d563403ccf2a75 /Doc/whatsnew/3.12.rst | |
parent | ed391090cc8332406e6225d40877db6ff44a7104 (diff) | |
download | cpython-8bb2303fd75c299d8fc85229889ac75e867c135c.zip cpython-8bb2303fd75c299d8fc85229889ac75e867c135c.tar.gz cpython-8bb2303fd75c299d8fc85229889ac75e867c135c.tar.bz2 |
gh-99127: Allow some features of syslog to the main interpreter only (gh-99128)
Diffstat (limited to 'Doc/whatsnew/3.12.rst')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index dff4de6..c0f98b5 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -673,6 +673,15 @@ Changes in the Python API :class:`bytes` type is accepted for bytes strings. (Contributed by Victor Stinner in :gh:`98393`.) +* :func:`syslog.openlog` and :func:`syslog.closelog` now fail if used in subinterpreters. + :func:`syslog.syslog` may still be used in subinterpreters, + but now only if :func:`syslog.openlog` has already been called in the main interpreter. + These new restrictions do not apply to the main interpreter, + so only a very small set of users might be affected. + This change helps with interpreter isolation. Furthermore, :mod:`syslog` is a wrapper + around process-global resources, which are best managed from the main interpreter. + (Contributed by Dong-hee Na in :gh:`99127`.) + Build Changes ============= |