How can I open the underlying script for built-in functions? For example the function len
.
I want to open the script of the len
function to study how the underlying code is built, for educational purposes.
I have tried writing open(len)
and open(len())
, but I only get this error message:
Traceback (most recent call last):
File "C:/Users/someo/PycharmProjects/Test/test.py", line 1, in <module>
open(len())
TypeError: len() takes exactly one argument (0 given)