We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
error_fetch_and_normalize
1 parent a48ec3e commit fac23b6Copy full SHA for fac23b6
include/pybind11/pytypes.h
@@ -473,7 +473,7 @@ struct error_fetch_and_normalize {
473
+ " failed to obtain the name "
474
"of the normalized active exception type.");
475
}
476
-#if defined(PYPY_VERSION)
+#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x07030a00
477
// This behavior runs the risk of masking errors in the error handling, but avoids a
478
// conflict with PyPy, which relies on the normalization here to change OSError to
479
// FileNotFoundError (https://github.com/pybind/pybind11/issues/4075).
0 commit comments