gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (#105185)

This commit is contained in:
Irit Katriel
2023-06-02 08:59:18 +01:00
committed by GitHub
parent 77d2579586
commit ee26ca13a1
2 changed files with 8 additions and 0 deletions

View File

@@ -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)
{