We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbdf1ce commit 3e7be69Copy full SHA for 3e7be69
src/converter/from_python.cpp
@@ -222,7 +222,13 @@ namespace
222
, char const* ref_type)
223
{
224
handle<> holder(source);
225
- if (Py_REFCNT(source) <= 1)
+ if (
226
+#if PY_VERSION_HEX < 0x03090000
227
+ source->ob_refcnt
228
+#else
229
+ Py_REFCNT(source)
230
+#endif
231
+ <= 1)
232
233
handle<> msg(
234
#if PY_VERSION_HEX >= 0x3000000
0 commit comments