File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,18 @@ The module defines these functions:
76
76
format), raise :exc: `EOFError `, :exc: `ValueError ` or :exc: `TypeError `. The
77
77
file must be a readable :term: `binary file `.
78
78
79
- .. audit-event :: marshal.loads bytes marshal.load
79
+ .. audit-event :: marshal.load "" marshal.load
80
80
81
81
.. note ::
82
82
83
83
If an object containing an unsupported type was marshalled with :func: `dump `,
84
84
:func: `load ` will substitute ``None `` for the unmarshallable type.
85
85
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
+
86
91
87
92
.. function :: dumps(value[, version])
88
93
@@ -104,6 +109,11 @@ The module defines these functions:
104
109
105
110
.. audit-event :: marshal.loads bytes marshal.load
106
111
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
+
107
117
108
118
In addition, the following constants are defined:
109
119
You can’t perform that action at this time.
0 commit comments