I asked myself the same question a few weeks ago. Here is what I tried :
import inspect
for builtinname in dir(__builtins__):
try:
builtin = getattr(__builtins__, builtinname)
src = inspect.getsource(builtin)
srcfile = inspect.getsourcefile(builtin)
print(f"Source for {builtinname} is in {srcfile} :")
print(src)
except TypeError as e:
# inspect.getsource throw a TypeError when called on a builtin
# it is not a documented behavior
print(f"Source cannot be found for builtin {builtinname}")
The only builtins attribute with python source availaible is __loader__
. When you look about it you understand that it is not really a builtin.
So the final answer to your question is no. There is no builtin written in pure Python in the CPython implementation.