Closed arthurzam closed 2 weeks ago
PyErr_Format
does not include the cause.
PyErr_Format
does not include the cause.
OK, so which other function should we use? I can modify it as needed.
It's complicated. I'll look into it during the weekend.
Thank you. I leave it to your discretion if you want to just close this PR, or override it, or anything else.
Fixed in 2f7889d
The
_PyErr_FormatFromCause
function is a private function, which was never documented. While it existed for a long time, it was removed in Python 3.13 https://github.com/python/cpython/issues/106320.Use instead the public function
PyErr_Format
, which is also part of the stable API.