Skip to content

[Python] _Py_IsFinalizing will be removed in Python 3.13 #41475

@tacaswell

Description

@tacaswell

Describe the bug, including details regarding any error messages, version, and platform.

_Py_IsFinalizing was removed in python/cpython#106400 and replaced with a public version in python/cpython#108032 .

This function is used 5 places in udf.cc for example:

~PythonUdfKernelState() {
if (_Py_IsFinalizing()) {
function->detach();
}
}
which prevents building on Python 3.13.

Presumably this will need to be version gated on the version of CPython, but I am not sure how you prefer to do that in arrow.

Component(s)

Python

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions