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
Solution 1:
The __builtin__
module is implemented in Python/bltinmodule.c
, a rather unusual location for a rather unusual module.
Solution 2:
I can't try it right now, but python default ide is able to open core modules easily (I tried with math and some more)
https://docs.python.org/2/library/idle.html
On menus. Open module.
Post a Comment for "How Can I See Python's __builtins__ Source Code?"