summaryrefslogtreecommitdiffstats
path: root/Doc/library/syslog.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/syslog.rst')
-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)