kou commented on code in PR #42034:
URL: https://github.com/apache/arrow/pull/42034#discussion_r1632102656


##########
python/pyarrow/src/arrow/python/udf.cc:
##########
@@ -28,6 +28,11 @@
 #include "arrow/util/checked_cast.h"
 #include "arrow/util/logging.h"
 
+#if PY_VERSION_HEX >= 0x030D00A4
+#define __Py_IsFinalizing Py_IsFinalizing
+#else
+#define __Py_IsFinalizing _Py_IsFinalizing
+#endif

Review Comment:
   How about always using `Py_IsFinalizing` (new API)?
   
   ```suggestion
   #if PY_VERSION_HEX < 0x030D00A4
   #define Py_IsFinalizing() _Py_IsFinalizing()
   #endif
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to