MCPcopy Create free account
hub / github.com/apache/arrow / FromPyObject

Method FromPyObject

python/pyarrow/src/arrow/python/common.cc:231–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231Result<std::shared_ptr<Buffer>> PyBuffer::FromPyObject(PyObject* obj) {
232 PyBuffer* buf = new PyBuffer();
233 std::shared_ptr<Buffer> res(buf);
234 RETURN_NOT_OK(buf->Init(obj));
235 return res;
236}
237
238PyBuffer::~PyBuffer() {
239 // GH-38626: destructor may be called after the Python interpreter is finalized.

Callers

nothing calls this directly

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected