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 does
not 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
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to