MCPcopy Create free account
hub / github.com/numpy/numpy / npy_PyFile_CloseFile

Function npy_PyFile_CloseFile

numpy/core/include/numpy/npy_3kcompat.h:427–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427static inline int
428npy_PyFile_CloseFile(PyObject *file)
429{
430 PyObject *ret;
431
432 ret = PyObject_CallMethod(file, "close", NULL);
433 if (ret == NULL) {
434 return -1;
435 }
436 Py_DECREF(ret);
437 return 0;
438}
439
440
441/* This is a copy of _PyErr_ChainExceptions

Callers 2

array_tofileFunction · 0.85
array_fromfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected