apache / apache/arrow

[Python] `Array.from_buffers` docs should mention safety issues

Open
#49,717 1 comment 0 reactions 0 assignees View on GitHub
Component: Python Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the enhancement requested

The docstring for `Array.from_buffers` (and similar methods on subclasses, e.g. `StringArray.from_buffers`) should explicitly mention that the caller is responsible for passing valid Arrow data (or calling `validate` on the result), otherwise they could encounter crashes when using the result.

### Component(s)

Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.