Update p02_write_simple_c_extension_module.rst #345
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在
15.2 简单的C扩展模块
中,按照译文代码不能正常构建扩展模块。由于没有原文书籍参考是否是译文问题,但在作者源码示例仓库 python-cookbook 中,代码与目前译文是存在出入的。因此修改了 15.2 的部分代码块。可能与原书籍代码存在出入,但修改后的代码可以正常构建扩展模块。