osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fopen() and open() in cpython


After my investigation, I found Since Python maintains its own buffer when
read/write files, the build-in python open() function will call the open()
system call instead of calling standard io fopen() for caching.  So when we
read/write a file in Python, it would not call fopen(), fopen() only use
for Python itself but not for python user. Am I correct?