How can I see Python's __builtins__ source code?
问题 Can I get python to print the source code for __builtins__ directly? OR (more preferably): What is the pathname of the source code for __builtins__ ? I at least know the following things: __builtins__ is a module, by typing type(__builtins__) . I have tried the best-answer-suggestions to a more general case of this SO question: "Finding the source code for built-in Python functions?". But no luck: print inspect.getdoc(__builtins__) just gives me a description. inspect.getfile(__builtins__)