Skip to content

Commit 1d966e9

Browse files
authored
GH-40386: [Python] Fix except clauses (#40387)
### Rationale for this change See #40386, these changes are necessary for compatibility with Cython 3.0.9 ### What changes are included in this PR? This PR removes unnecessary `noexcept` clauses. ### Are these changes tested? Covered by existing builds. ### Are there any user-facing changes? No. * GitHub Issue: #40386 Authored-by: Vyas Ramasubramani <vyasr@nvidia.com> Signed-off-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
1 parent 96f26a8 commit 1d966e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/pyarrow/types.pxi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5462,7 +5462,7 @@ cdef void pycapsule_schema_deleter(object schema_capsule) noexcept:
54625462

54635463
free(schema)
54645464

5465-
cdef object alloc_c_schema(ArrowSchema** c_schema) noexcept:
5465+
cdef object alloc_c_schema(ArrowSchema** c_schema):
54665466
c_schema[0] = <ArrowSchema*> malloc(sizeof(ArrowSchema))
54675467
# Ensure the capsule destructor doesn't call a random release pointer
54685468
c_schema[0].release = NULL
@@ -5481,7 +5481,7 @@ cdef void pycapsule_array_deleter(object array_capsule) noexcept:
54815481

54825482
free(array)
54835483

5484-
cdef object alloc_c_array(ArrowArray** c_array) noexcept:
5484+
cdef object alloc_c_array(ArrowArray** c_array):
54855485
c_array[0] = <ArrowArray*> malloc(sizeof(ArrowArray))
54865486
# Ensure the capsule destructor doesn't call a random release pointer
54875487
c_array[0].release = NULL
@@ -5500,7 +5500,7 @@ cdef void pycapsule_stream_deleter(object stream_capsule) noexcept:
55005500

55015501
free(stream)
55025502

5503-
cdef object alloc_c_stream(ArrowArrayStream** c_stream) noexcept:
5503+
cdef object alloc_c_stream(ArrowArrayStream** c_stream):
55045504
c_stream[0] = <ArrowArrayStream*> malloc(sizeof(ArrowArrayStream))
55055505
# Ensure the capsule destructor doesn't call a random release pointer
55065506
c_stream[0].release = NULL

0 commit comments

Comments
 (0)