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

Function InitDatetime

python/pyarrow/src/arrow/python/datetime.cc:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78PyDateTime_CAPI* datetime_api = nullptr;
79
80void InitDatetime() {
81 PyAcquireGIL lock;
82 datetime_api =
83 reinterpret_cast<PyDateTime_CAPI*>(PyCapsule_Import(PyDateTime_CAPSULE_NAME, 0));
84 if (datetime_api == nullptr) {
85 Py_FatalError("Could not import datetime C API");
86 }
87}
88#endif
89
90// The following code is adapted from

Callers 1

import_pyarrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected