Is there a way to see how built in functions work in python? I don\'t mean just how to use them, but also how were they built, what is the code behind sorted
Here is a cookbook answer to supplement @Chris' answer, CPython has moved to GitHub and the Mercurial repository will no longer be updated:
git clone https://github.com/python/cpython.git
Code will checkout to a subdirectory called cpython -> cd cpython
print()...egrep --color=always -R 'print' | less -RPython/bltinmodule.c -> builtin_print()Enjoy.