Commit f3109d84 by Wenzel Jakob

future-proof Python version check from commit 31680e6f (@lgritz)

parent 82cf7935
...@@ -1566,7 +1566,7 @@ public: ...@@ -1566,7 +1566,7 @@ public:
#if PY_MAJOR_VERSION < 3 #if PY_MAJOR_VERSION < 3
def("__long__", [](Type value) { return (Scalar) value; }); def("__long__", [](Type value) { return (Scalar) value; });
#endif #endif
#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 8 #if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 8)
def("__index__", [](Type value) { return (Scalar) value; }); def("__index__", [](Type value) { return (Scalar) value; });
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment