We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86414a commit 098ffe0Copy full SHA for 098ffe0
1 file changed
Doc/library/os.rst
@@ -219,6 +219,10 @@ process and user.
219
:data:`os.environ`, and when one of the :meth:`~dict.pop` or
220
:meth:`~dict.clear` methods is called.
221
222
+ If the ``clearenv()`` function is available, the :meth:`~dict.clear` method
223
+ uses it and emits a single ``os._clearenv`` audit event. Otherwise, it emits
224
+ an ``os.unsetenv`` event on each deleted variable.
225
+
226
.. audit-event:: os.unsetenv key os.unsetenv
227
228
.. audit-event:: os._clearenv "" os._clearenv
0 commit comments