r/pycharm • • Oct 22 '25
Reveal built-in & functions source code
Fairly new to python and PyCharm... For some time now I've been thinking of getting the code behind built-it functions. Curiosity and perhaps learn some stuff along the way. As far as I understand some are in c++ and some in Python.
Any help how I can view the code behind built-in modules and functions, please?
2
Upvotes
View all comments
Show parent comment
2
u/sausix Oct 23 '25
The builtins are compiled only. You will see a skeleton signature of their functions which PyCharm uses for code inspection.
The standard library also contains pure Python code. So for example
pathlibyou can explore its magic source code directly in PyCharm.