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

Method ToString

python/pyarrow/src/arrow/python/extension_type.cc:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74static const char* kExtensionName = "arrow.py_extension_type";
75
76std::string PyExtensionType::ToString(bool show_metadata) const {
77 PyAcquireGIL lock;
78
79 std::stringstream ss;
80 OwnedRef instance(GetInstance());
81 ss << "extension<" << this->extension_name() << "<" << Py_TYPE(instance.obj())->tp_name
82 << ">>";
83 return ss.str();
84}
85
86PyExtensionType::PyExtensionType(std::shared_ptr<DataType> storage_type, PyObject* typ,
87 PyObject* inst)

Callers 15

TestCheckPyErrorStatusFunction · 0.45
TestRestorePyErrorBasicsFunction · 0.45
FinalizeMethod · 0.45
FinalizeMethod · 0.45
ExecMethod · 0.45
VisitMethod · 0.45
GetNumPyTypeFunction · 0.45
ConvertMethod · 0.45
AppendMethod · 0.45
CheckTypeExactMethod · 0.45

Calls 2

strMethod · 0.80
extension_nameMethod · 0.45

Tested by 4

TestCheckPyErrorStatusFunction · 0.36
TestRestorePyErrorBasicsFunction · 0.36