File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 92.57 %" , "updated_at" : " 2023-12-02T07 :55:44Z " }
1+ {"translation" : " 92.58 %" , "updated_at" : " 2023-12-02T16 :55:32Z " }
Original file line number Diff line number Diff line change @@ -363,6 +363,9 @@ msgid ""
363363" the descriptor from the class object, and get the doc string using its "
364364":attr:`!__doc__` attribute."
365365msgstr ""
366+ "使用 :c:member:`~PyTypeObject.tp_members` "
367+ "表来构建用于运行时的描述器还有一个有趣的优点是任何以这种方式定义的属性都可以简单地通过在表中提供文本来设置一个相关联的文档字符串。 "
368+ "一个应用程序可以使用自省 API 从类对象获取描述器,并使用其 :attr:`!__doc__` 属性来获取文档字符串。"
366369
367370#: ../../extending/newtypes.rst:301
368371msgid ""
@@ -509,6 +512,9 @@ msgid ""
509512" which is why you should be careful to avoid returning it when hash "
510513"computation is successful, as seen above."
511514msgstr ""
515+ ":c:type:`!Py_hash_t` 是一个宽度取决于具体平台的有符号整数类型。 从 "
516+ ":c:member:`~PyTypeObject.tp_hash` 返回 ``-1`` "
517+ "表示发生了错误,这就是为什么你应当注意避免在哈希运算成功时返回它,如上面所演示的那样。"
512518
513519#: ../../extending/newtypes.rst:460
514520msgid ""
You can’t perform that action at this time.
0 commit comments