apache / apache/arrow

[Python] Fix nogil declarations on libarrow_python.pxd

Open
#31,597 0 comments 0 reactions 0 assignees View on GitHub
Component: Python Type: task
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

It seems some `nogil` declarations must be fixed for some of the libarrow_python APIs that actually take/return a `{}PyObject*{`}, or depend on Python C APIs.

**Reporter**: [Raúl Cumplido](https://issues.apache.org/jira/browse/ARROW-16196) / @raulcd

**Note**: *This issue was originally created as [ARROW-16196](https://issues.apache.org/jira/browse/ARROW-16196). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start by inspecting libarrow_python.pxd, focusing on declarations involving PyObject* or Python C APIs and their nogil annotations. Done means the affected declarations no longer permit nogil where Python interaction makes that unsafe.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.