summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2022-11-29 22:58:20 (GMT)
committerGitHub <noreply@github.com>2022-11-29 22:58:20 (GMT)
commit8bb2303fd75c299d8fc85229889ac75e867c135c (patch)
tree554b8be7af106eb3cf6519ca06d563403ccf2a75 /Doc/library
parented391090cc8332406e6225d40877db6ff44a7104 (diff)
downloadcpython-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/library')
-rw-r--r--Doc/library/syslog.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst
index 766ff57..f29ef03 100644
--- a/Doc/library/syslog.rst
+++ b/Doc/library/syslog.rst
@@ -40,6 +40,13 @@ The module defines the following functions:
it wasn't called prior to the call to :func:`syslog`, deferring to the syslog
implementation to call ``openlog()``.
+ .. versionchanged:: 3.12
+ This function is restricted in subinterpreters.
+ (Only code that runs in multiple interpreters is affected and
+ the restriction is not relevant for most users.)
+ :func:`openlog` must be called in the main interpreter before :func:`syslog` may be used
+ in a subinterpreter. Otherwise it will raise :exc:`RuntimeError`.
+
.. function:: openlog([ident[, logoption[, facility]]])
@@ -60,6 +67,13 @@ The module defines the following functions:
In previous versions, keyword arguments were not allowed, and *ident* was
required.
+ .. versionchanged:: 3.12
+ This function is restricted in subinterpreters.
+ (Only code that runs in multiple interpreters is affected and
+ the restriction is not relevant for most users.)
+ This may only be called in the main interpreter.
+ It will raise :exc:`RuntimeError` if called in a subinterpreter.
+
.. function:: closelog()
@@ -72,6 +86,13 @@ The module defines the following functions:
.. audit-event:: syslog.closelog "" syslog.closelog
+ .. versionchanged:: 3.12
+ This function is restricted in subinterpreters.
+ (Only code that runs in multiple interpreters is affected and
+ the restriction is not relevant for most users.)
+ This may only be called in the main interpreter.
+ It will raise :exc:`RuntimeError` if called in a subinterpreter.
+
.. function:: setlogmask(maskpri)