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

Method __repr__

python/pyarrow/interchange/buffer.py:96–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 raise NotImplementedError("__dlpack_device__")
95
96 def __repr__(self) -> str:
97 return (
98 "PyArrowBuffer(" +
99 str(
100 {
101 "bufsize": self.bufsize,
102 "ptr": self.ptr,
103 "device": self.__dlpack_device__()[0].name,
104 }
105 ) +
106 ")"
107 )

Callers 2

test_call_options_reprFunction · 0.45
check_ipc_options_reprFunction · 0.45

Calls 1

__dlpack_device__Method · 0.95

Tested by 2

test_call_options_reprFunction · 0.36
check_ipc_options_reprFunction · 0.36