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

   ### Describe the enhancement requested
   
   Should the `pyarrow.scalar` constructor check for the PyCapsule Interface? 
It would allow any input with `__arrow_c_array__`, additionally validating that 
the input is a length-1 array.
   
   In this case it's less important for the _speed_ of sharing large data 
across multiple libraries than it is for the reliability of communicating Arrow 
data.
   
   An existing workaround is to use `pa.array(other_scalar).slice(0, 1)`, so 
it's not clear whether the `pa.scalar` constructor should or should not check 
for this.
   
   cc @jorisvandenbossche 
   
   ### 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-unsubscr...@arrow.apache.org.apache.org

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

Reply via email to