I am looking for the source code for python built in function open()
,
I've checked the bltinmodule.c but found no open()
inside.
Does anyone know where the source of open()
is?
Or, how to find it?
Thank you.
Asked
Active
Viewed 3,184 times
1

mJace
- 49
- 1
- 8
-
1please refer to this link http://stackoverflow.com/questions/8608587/finding-the-source-code-for-built-in-python-functions – pushpendra chauhan May 09 '17 at 07:29
-
Look in `Lib/_pyio.py`. Depending on what you want, you might also need `Objects/fileobject.c` – cdarke May 09 '17 at 07:35