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

Method Tell

python/pyarrow/src/arrow/python/io.cc:152–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 Result<int64_t> Tell() {
153 RETURN_NOT_OK(CheckClosed());
154
155 PyObject* result = cpp_PyObject_CallMethod(file_.obj(), "tell", "()");
156 PY_RETURN_IF_ERROR(StatusCode::IOError);
157
158 int64_t position = PyLong_AsLongLong(result);
159 Py_DECREF(result);
160
161 // PyLong_AsLongLong can raise OverflowError
162 PY_RETURN_IF_ERROR(StatusCode::IOError);
163 return position;
164 }
165
166 std::mutex& lock() { return lock_; }
167

Callers

nothing calls this directly

Calls 2

cpp_PyObject_CallMethodFunction · 0.85
CheckClosedFunction · 0.50

Tested by

no test coverage detected