这是关于扩展解释器的“官方”教程,这应该是一个开始 -http://docs.python.org/extending/index.html http://docs.python.org/extending/index.html然后是C API 参考 http://docs.python.org/c-api/index.html这在您工作时应该很有用。
Eli https://stackoverflow.com/users/8206/eli-bendersky有一系列持续描述口译员内部结构的帖子his blog http://eli.thegreenplace.net/category/programming/python/python-internals/.