[Python-Dev] how/where is open() implemented ?
MRAB
python at mrabarnett.plus.com
Thu Oct 5 23:00:22 EDT 2017
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
More information about the Python-Dev
mailing list