We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c5bc85 commit e8b34b4Copy full SHA for e8b34b4
include/pybind11/detail/internals.h
@@ -428,8 +428,8 @@ inline void translate_local_exception(std::exception_ptr p) {
428
429
inline object get_python_state_dict() {
430
object state_dict;
431
-#if (PYBIND11_INTERNALS_VERSION <= 4 && PY_VERSION_HEX < 0x030C0000) \
432
- || PY_VERSION_HEX < 0x03080000 || defined(PYPY_VERSION)
+#if PY_VERSION_HEX < 0x03080000 \
+ || (PYBIND11_INTERNALS_VERSION <= 4 && PY_VERSION_HEX < 0x030C0000) || defined(PYPY_VERSION)
433
state_dict = reinterpret_borrow<object>(PyEval_GetBuiltins());
434
#else
435
# if PY_VERSION_HEX < 0x03090000
0 commit comments