这是一本食谱的补充
@Chris' answer
,cpython已移动到github,Mercurial存储库将不再更新:
-
必要时安装git。
-
git clone https://github.com/python/cpython.git
-
代码将签出到名为
cpython
->
cd cpython
-
假设我们正在寻找
print()
…
-
egrep --color=always -R 'print' | less -R
-
啊哈!见
Python/bltinmodule.c
->
builtin_print()
享受吧。