On 2017年10月06日 03:19, Yubin Ruan wrote:
Hi, I am looking for the implementation of open() in the src, but so far I am not able to do this.From my observation, the implementation of open() in python2/3 doesnot employ the open(2) system call. However without open(2) how can one possibly obtain a file descriptor?
I think it's somewhere in here: https://github.com/python/cpython/blob/master/Modules/_io/fileio.c _______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com