mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.11] gh-121957: Emit audit events for python -i and python -m asyncio (GH-122118)
This commit is contained in:
parent
1b0e63c81b
commit
d542a9be51
5 changed files with 22 additions and 1 deletions
|
|
@ -56,8 +56,12 @@ Additionally, there are **low-level** APIs for
|
|||
* :ref:`bridge <asyncio-futures>` callback-based libraries and code
|
||||
with async/await syntax.
|
||||
|
||||
.. include:: ../includes/wasm-notavail.rst
|
||||
|
||||
.. _asyncio-cli:
|
||||
|
||||
.. rubric:: asyncio REPL
|
||||
|
||||
You can experiment with an ``asyncio`` concurrent context in the REPL:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
|
@ -70,7 +74,10 @@ You can experiment with an ``asyncio`` concurrent context in the REPL:
|
|||
>>> await asyncio.sleep(10, result='hello')
|
||||
'hello'
|
||||
|
||||
.. include:: ../includes/wasm-notavail.rst
|
||||
.. audit-event:: cpython.run_stdin "" ""
|
||||
|
||||
.. versionchanged:: 3.11.10 (also 3.10.15, 3.9.20, and 3.8.20)
|
||||
Emits audit events.
|
||||
|
||||
.. We use the "rubric" directive here to avoid creating
|
||||
the "Reference" subsection in the TOC.
|
||||
|
|
|
|||
|
|
@ -697,6 +697,11 @@ conflict.
|
|||
This variable can also be modified by Python code using :data:`os.environ`
|
||||
to force inspect mode on program termination.
|
||||
|
||||
.. audit-event:: cpython.run_stdin "" ""
|
||||
|
||||
.. versionchanged:: 3.11.10 (also 3.10.15, 3.9.20, and 3.8.20)
|
||||
Emits audit events.
|
||||
|
||||
|
||||
.. envvar:: PYTHONUNBUFFERED
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue