diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-06-02 08:24:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 08:24:25 (GMT) |
commit | 46cc4f0f76a9f6966aee76d74f8db9a2f43fa8a6 (patch) | |
tree | 147faac545161e58bd8d4713acab2a68173c3a81 /Python | |
parent | e6d5e63614684025d4aa09f77a759eb3fc0bd77f (diff) | |
download | cpython-46cc4f0f76a9f6966aee76d74f8db9a2f43fa8a6.zip cpython-46cc4f0f76a9f6966aee76d74f8db9a2f43fa8a6.tar.gz cpython-46cc4f0f76a9f6966aee76d74f8db9a2f43fa8a6.tar.bz2 |
[3.12] gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (GH-105185) (#105218)
gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (GH-105185)
(cherry picked from commit ee26ca13a129da8cf549409d0a1b2e892ff2b4ec)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/marshal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/marshal.c b/Python/marshal.c index 208996b..6439503 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -625,6 +625,10 @@ w_clear_refs(WFILE *wf) } /* version currently has no effect for writing ints. */ +/* Note that while the documentation states that this function + * can error, currently it never does. Setting an exception in + * this function should be regarded as an API-breaking change. + */ void PyMarshal_WriteLongToFile(long x, FILE *fp, int version) { |