
December 14th, 2012, 08:00 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 4
Time spent in forums: 34 m 32 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by b49P23TIvg The source for os.listdir is almost certainly written in c. Python would load it from a shared object or dynamic link library. If you really want it, download the python source and hunt for it.
...Trying my advice...
I think it starts with this line in file posixmodule.c.
posix_listdir(PyObject *self, PyObject *args, PyObject *kwargs) |
Ok thank you for the response but I still dont quite follow. OS.py is written in python right? so when i import os im importing os.py, why then can i not find the functions listed inside os.py that i can see when i do a dir(os)
|