File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,11 +137,12 @@ msgid ""
137137"finalization code in :c:member:`~PyTypeObject.tp_dealloc`, and instead use "
138138"the new :c:member:`~PyTypeObject.tp_finalize` type method."
139139msgstr ""
140- "从Python3.4开始,推荐不要在:c:member:`~PyTypeObject.tp_dealloc`放复杂的终结代码,而是使用新的:c:member:`~PyTypeObject.tp_finalize`类型方法。"
140+ "从 Python 3.4 开始,推荐不要在 :c:member:`~PyTypeObject.tp_dealloc` 放复杂的终结代码,而是使用新的 "
141+ ":c:member:`~PyTypeObject.tp_finalize` 类型方法。"
141142
142143#: ../../extending/newtypes.rst:134
143144msgid ":pep:`442` explains the new finalization scheme."
144- msgstr ":pep:`442`解释了新的终结方案。"
145+ msgstr ":pep:`442` 解释了新的终结方案。"
145146
146147#: ../../extending/newtypes.rst:141
147148msgid "Object Presentation"
Original file line number Diff line number Diff line change @@ -459,16 +459,20 @@ msgid ""
459459"it is unnecessary to include the source code for the expression that failed "
460460"in the error message; it will be displayed as part of the stack trace."
461461msgstr ""
462+ "以上等价形式假定 :const:`__debug__` 和 :exc:`AssertionError` 指向具有指定名称的内置变量。 "
463+ "在当前实现中,内置变量 :const:`__debug__` 在正常情况下为 ``True``,在请求优化时为 ``False`` (对应命令行选项为 "
464+ ":option:`-O`)。 如果在编译时请求优化,当前代码生成器不会为 assert 语句发出任何代码。 "
465+ "请注意不必在错误信息中包含失败表达式的源代码;它会被作为栈追踪的一部分被显示。"
462466
463467#: ../../reference/simple_stmts.rst:409
464468msgid ""
465469"Assignments to :const:`__debug__` are illegal. The value for the built-in "
466470"variable is determined when the interpreter starts."
467- msgstr ""
471+ msgstr "赋值给 :const:`__debug__` 是非法的。 该内置变量的值会在解释器启动时确定。 "
468472
469473#: ../../reference/simple_stmts.rst:416
470474msgid "The :keyword:`!pass` statement"
471- msgstr ""
475+ msgstr ":keyword:`!pass` 语句 "
472476
473477#: ../../reference/simple_stmts.rst:426
474478msgid ""
You can’t perform that action at this time.
0 commit comments