mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[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 ee26ca13a1
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
e6d5e63614
commit
46cc4f0f76
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue