mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
gh-121957: Emit audit events for python -i
and python -m asyncio
(GH-121958)
Relatedly, emit the `cpython.run_startup` event from the Python version of `PYTHONSTARTUP` handling.
This commit is contained in:
parent
cad11a2bdc
commit
dc93d1125f
6 changed files with 36 additions and 2 deletions
|
@ -56,9 +56,13 @@ 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:
|
||||
|
||||
You can experiment with an ``asyncio`` concurrent context in the REPL:
|
||||
.. rubric:: asyncio REPL
|
||||
|
||||
You can experiment with an ``asyncio`` concurrent context in the :term:`REPL`:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
|
@ -70,7 +74,14 @@ 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.12.5 (also 3.11.10, 3.10.15, 3.9.20, and 3.8.20)
|
||||
Emits audit events.
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
Uses PyREPL if possible, in which case :envvar:`PYTHONSTARTUP` is
|
||||
also executed. Emits audit events.
|
||||
|
||||
.. We use the "rubric" directive here to avoid creating
|
||||
the "Reference" subsection in the TOC.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue