mroeschke commented on code in PR #50409:
URL: https://github.com/apache/arrow/pull/50409#discussion_r3641733217
##########
python/pyarrow/src/arrow/python/common.h:
##########
@@ -398,8 +399,8 @@ struct PyBytesView {
// View the given Python object as binary-like, i.e. bytes
Status ParseBinary(PyObject* obj) {
if (PyBytes_Check(obj)) {
- bytes = PyBytes_AS_STRING(obj);
- size = PyBytes_GET_SIZE(obj);
+ bytes = PyBytes_AsString(obj);
+ size = PyBytes_Size(obj);
Review Comment:
Ah gotcha. Followed this pattern in bfa0d507c2eab893b2caef0b91f280fbb0461542
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]