diff options
author | Steve Dower <steve.dower@python.org> | 2021-06-30 17:53:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 17:53:13 (GMT) |
commit | 95919b0d2744adb87acf696ae1de905cf02a95a6 (patch) | |
tree | b8d68ff677a323d4e71dc0b9fabf978436397e58 | |
parent | 139de04518bd98a975b7c98ab8a38e570dc585e4 (diff) | |
download | cpython-95919b0d2744adb87acf696ae1de905cf02a95a6.zip cpython-95919b0d2744adb87acf696ae1de905cf02a95a6.tar.gz cpython-95919b0d2744adb87acf696ae1de905cf02a95a6.tar.bz2 |
bpo-41180: Fixes documentation to specify correct event name and add versionchanged (GH-26972)
-rw-r--r-- | Doc/library/marshal.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst index 458c0d53..24f9dc1 100644 --- a/Doc/library/marshal.rst +++ b/Doc/library/marshal.rst @@ -76,13 +76,18 @@ The module defines these functions: format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. The file must be a readable :term:`binary file`. - .. audit-event:: marshal.loads bytes marshal.load + .. audit-event:: marshal.load "" marshal.load .. note:: If an object containing an unsupported type was marshalled with :func:`dump`, :func:`load` will substitute ``None`` for the unmarshallable type. + .. versionchanged:: 3.10 + + This call used to raise a ``code.__new__`` audit event for each code object. Now + it raises a single ``marshal.load`` event for the entire load operation. + .. function:: dumps(value[, version]) @@ -104,6 +109,11 @@ The module defines these functions: .. audit-event:: marshal.loads bytes marshal.load + .. versionchanged:: 3.10 + + This call used to raise a ``code.__new__`` audit event for each code object. Now + it raises a single ``marshal.loads`` event for the entire load operation. + In addition, the following constants are defined: |