fopen() and open() in cpython

Windson Yang wiwindson at gmail.com
Wed Aug 14 00:04:52 EDT 2019


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?



More information about the Python-list mailing list