python / python-docs-zh-cn

zh_CN translation of the Python documentation
https://docs.python.org/zh-cn/
431 stars 74 forks source link

关键词拼写错误 #192

Closed Jiuh-star closed 3 years ago

Jiuh-star commented 3 years ago

【译文链接】:https://docs.python.org/zh-cn/3/extending/extending.html#back-to-the-example 【原文】:

If you have a C function that returns no useful argument (a function returning void), the corresponding Python function must return None. You need this idiom to do so (which is implemented by the Py_RETURN_NONE macro):

【有误译文】:

如果你的C函数没有有用的返回值(返回 void 的函数),则必须返回 None 。(你可以用 Py_RETUN_NONE 宏来完成):

【建议译文】:

如果你的C函数没有有用的返回值(返回 void 的函数),则必须返回 None 。(你可以用 Py_RETURN_NONE 宏来完成):

另外,原文 Py_RETURN_NONE 会链接至 https://docs.python.org/3/c-api/none.html#c.Py_RETURN_NONE ,而译文没有。

silkriver commented 3 years ago

fixed