[Python-Dev] how/where is open() implemented ? (original) (raw)
MRAB python at mrabarnett.plus.com
Thu Oct 5 23:00:22 EDT 2017
- Previous message (by thread): [Python-Dev] how/where is open() implemented ?
- Next message (by thread): [Python-Dev] Summary of Python tracker Issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] how/where is open() implemented ?
- Next message (by thread): [Python-Dev] Summary of Python tracker Issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]