Skip to content

Commit a6cabb2

Browse files
vyasrraulcd
authored andcommitted
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 <[email protected]> Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
1 parent ac4a643 commit a6cabb2

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
@@ -5261,7 +5261,7 @@ cdef void pycapsule_schema_deleter(object schema_capsule) noexcept:
52615261

52625262
free(schema)
52635263

5264-
cdef object alloc_c_schema(ArrowSchema** c_schema) noexcept:
5264+
cdef object alloc_c_schema(ArrowSchema** c_schema):
52655265
c_schema[0] = <ArrowSchema*> malloc(sizeof(ArrowSchema))
52665266
# Ensure the capsule destructor doesn't call a random release pointer
52675267
c_schema[0].release = NULL
@@ -5280,7 +5280,7 @@ cdef void pycapsule_array_deleter(object array_capsule) noexcept:
52805280

52815281
free(array)
52825282

5283-
cdef object alloc_c_array(ArrowArray** c_array) noexcept:
5283+
cdef object alloc_c_array(ArrowArray** c_array):
52845284
c_array[0] = <ArrowArray*> malloc(sizeof(ArrowArray))
52855285
# Ensure the capsule destructor doesn't call a random release pointer
52865286
c_array[0].release = NULL
@@ -5299,7 +5299,7 @@ cdef void pycapsule_stream_deleter(object stream_capsule) noexcept:
52995299

53005300
free(stream)
53015301

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

0 commit comments

Comments
 (0)