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

Function IsPyUuid

python/pyarrow/src/arrow/python/helpers.cc:354–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352} // namespace
353
354bool IsPyUuid(PyObject* obj) {
355 PyObject* uuid_class = GetUuidClass();
356 if (!uuid_class) return false;
357 int result = PyObject_IsInstance(obj, uuid_class);
358 if (result < 0) {
359 PyErr_Clear();
360 return false;
361 }
362 return result != 0;
363}
364
365Result<PyObject*> UuidFromBytes(std::string_view bytes, PyObject* kwargs) {
366 PyObject* uuid_class = GetUuidClass();

Callers 2

VisitMethod · 0.85
ConvertMethod · 0.85

Calls 1

GetUuidClassFunction · 0.85

Tested by

no test coverage detected