Skip to content

Commit 95919b0

Browse files
authored
bpo-41180: Fixes documentation to specify correct event name and add versionchanged (GH-26972)
1 parent 139de04 commit 95919b0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Doc/library/marshal.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,18 @@ The module defines these functions:
7676
format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. The
7777
file must be a readable :term:`binary file`.
7878

79-
.. audit-event:: marshal.loads bytes marshal.load
79+
.. audit-event:: marshal.load "" marshal.load
8080

8181
.. note::
8282

8383
If an object containing an unsupported type was marshalled with :func:`dump`,
8484
:func:`load` will substitute ``None`` for the unmarshallable type.
8585

86+
.. versionchanged:: 3.10
87+
88+
This call used to raise a ``code.__new__`` audit event for each code object. Now
89+
it raises a single ``marshal.load`` event for the entire load operation.
90+
8691

8792
.. function:: dumps(value[, version])
8893

@@ -104,6 +109,11 @@ The module defines these functions:
104109

105110
.. audit-event:: marshal.loads bytes marshal.load
106111

112+
.. versionchanged:: 3.10
113+
114+
This call used to raise a ``code.__new__`` audit event for each code object. Now
115+
it raises a single ``marshal.loads`` event for the entire load operation.
116+
107117

108118
In addition, the following constants are defined:
109119

0 commit comments

Comments
 (0)