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

Function npy_PyFile_OpenFile

numpy/core/include/numpy/npy_3kcompat.h:416–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416static inline PyObject*
417npy_PyFile_OpenFile(PyObject *filename, const char *mode)
418{
419 PyObject *open;
420 open = PyDict_GetItemString(PyEval_GetBuiltins(), "open");
421 if (open == NULL) {
422 return NULL;
423 }
424 return PyObject_CallFunction(open, "Os", filename, mode);
425}
426
427static inline int
428npy_PyFile_CloseFile(PyObject *file)

Callers 2

array_tofileFunction · 0.85
array_fromfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected