You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2026/04/13 14:26:13 UTC

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

pitrou opened a new issue, #49717:
URL: https://github.com/apache/arrow/issues/49717

   ### 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `Array.from_buffers` docs should mention safety issues [arrow]

Posted by "med9110 (via GitHub)" <gi...@apache.org>.
med9110 commented on issue #49717:
URL: https://github.com/apache/arrow/issues/49717#issuecomment-6127335872

   Hi @pitrou, I'd be interested in contributing to this issue if it's still available.
   
   I'd update the `Array.from_buffers` documentation and the relevant subclass methods to explain the caller's responsibility for valid buffer layouts and recommend validation where appropriate.
   
   Would this be a useful contribution, and is there any particular wording or scope you'd prefer?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `Array.from_buffers` docs should mention safety issues [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on issue #49717:
URL: https://github.com/apache/arrow/issues/49717#issuecomment-6335121803

   Please do @MarkCruz911 !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `Array.from_buffers` docs should mention safety issues [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on issue #49717:
URL: https://github.com/apache/arrow/issues/49717#issuecomment-4237138820

   @AlenkaF @thisisnic 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `Array.from_buffers` docs should mention safety issues [arrow]

Posted by "MarkCruz911 (via GitHub)" <gi...@apache.org>.
MarkCruz911 commented on issue #49717:
URL: https://github.com/apache/arrow/issues/49717#issuecomment-6334395841

   I am working on this issue. @pitrou 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org