@@ -4073,6 +4073,8 @@ msgid ""
4073
4073
"informative :exc:`ValueError` rather than the previous more mysterious "
4074
4074
":exc:`AttributeError` (:issue:`9177`)."
4075
4075
msgstr ""
4076
+ "在已关闭的 SSL 套接字上调用 ``read`` 或 ``write`` 现在会引发更具信息量的 :exc:`ValueError` "
4077
+ "而非之前更令人困惑的 :exc:`AttributeError` (:issue:`9177`)。"
4076
4078
4077
4079
#: ../../whatsnew/3.4.rst:2384
4078
4080
msgid ""
@@ -4081,6 +4083,9 @@ msgid ""
4081
4083
":exc:`ValueError` if given a negative length; previously it returned "
4082
4084
"nonsense values (:issue:`14794`)."
4083
4085
msgstr ""
4086
+ "对于巨大数值 :meth:`slice.indices` 将不再产生 :exc:`OverflowError`。 作为此项修复的结果,当给予负的长度时 "
4087
+ ":meth:`slice.indices` 现在会引发 :exc:`ValueError`;在之前版本中它会返回无意义的值 "
4088
+ "(:issue:`14794`)。"
4084
4089
4085
4090
#: ../../whatsnew/3.4.rst:2389
4086
4091
msgid ""
@@ -4089,6 +4094,8 @@ msgid ""
4089
4094
"special method returned one. This now raises a :exc:`TypeError`. "
4090
4095
"(:issue:`16290`.)"
4091
4096
msgstr ""
4097
+ "与 :mod:`cmath` 中的函数不同,当一个对象的 ``__complex__`` 特殊方法返回 :class:`float` 值时 "
4098
+ ":class:`complex` 构造器会不正确地接受它。 现在这会引发 :exc:`TypeError`。 (:issue:`16290`。)"
4092
4099
4093
4100
#: ../../whatsnew/3.4.rst:2394
4094
4101
msgid ""
@@ -4097,6 +4104,8 @@ msgid ""
4097
4104
"doing this, but if so, it will now raise a :exc:`TypeError` "
4098
4105
"(:issue:`16772`)."
4099
4106
msgstr ""
4107
+ "在 3.2 和 3.3 中的 :class:`int` 构造器会错误地接受 :class:`float` 值作为 *base* 形参。 "
4108
+ "多数人不太可能这样做,但如果真的如此,现在它将引发 :exc:`TypeError` (:issue:`16772`)。"
4100
4109
4101
4110
#: ../../whatsnew/3.4.rst:2398
4102
4111
msgid ""
0 commit comments