@@ -4312,6 +4312,10 @@ msgid ""
4312
4312
":issue:`18011`.) Note: this change was also inadvertently applied in Python"
4313
4313
" 3.3.3."
4314
4314
msgstr ""
4315
+ "当输入字符串包含 non-b32-alphabet 字符时 :func:`base64.b32decode` 现在会引发 "
4316
+ ":exc:`binascii.Error`,而不是 :exc:`TypeError`。 之前在其他 :exc:`TypeError` 被转换时这个 "
4317
+ ":exc:`TypeError` 被忽略了。 (由 Serhiy Storchaka 在 :issue:`18011` 中贡献。) "
4318
+ "注意:这项修改也被非故意地应用到了 Python 3.3.3。"
4315
4319
4316
4320
#: ../../whatsnew/3.4.rst:2373
4317
4321
msgid ""
@@ -4322,13 +4326,19 @@ msgid ""
4322
4326
"the entire :class:`!cgi.FieldStorage` instance or read the contents of the "
4323
4327
"file before the :class:`!cgi.FieldStorage` instance is garbage collected."
4324
4328
msgstr ""
4329
+ "当正在创建的 :class:`!cgi.FieldStorage` 实例被作为垃圾回收时 :attr:`!file` 属性现在会自动关闭。 "
4330
+ "如果你要单独从 :class:`!cgi.FieldStorage` 实例取出文件对象而不让该实例保持存活,那么你应当在 "
4331
+ ":class:`!cgi.FieldStorage` 实例被作为垃圾回收之前存储整个 :class:`!cgi.FieldStorage` "
4332
+ "实例或读取文件的内容。"
4325
4333
4326
4334
#: ../../whatsnew/3.4.rst:2380
4327
4335
msgid ""
4328
4336
"Calling ``read`` or ``write`` on a closed SSL socket now raises an "
4329
4337
"informative :exc:`ValueError` rather than the previous more mysterious "
4330
4338
":exc:`AttributeError` (:issue:`9177`)."
4331
4339
msgstr ""
4340
+ "在已关闭的 SSL 套接字上调用 ``read`` 或 ``write`` 现在会引发更具信息量的 :exc:`ValueError` "
4341
+ "而非之前更令人困惑的 :exc:`AttributeError` (:issue:`9177`)。"
4332
4342
4333
4343
#: ../../whatsnew/3.4.rst:2384
4334
4344
msgid ""
@@ -4337,6 +4347,9 @@ msgid ""
4337
4347
":exc:`ValueError` if given a negative length; previously it returned "
4338
4348
"nonsense values (:issue:`14794`)."
4339
4349
msgstr ""
4350
+ "对于巨大数值 :meth:`slice.indices` 将不再产生 :exc:`OverflowError`。 作为此项修复的结果,当给予负的长度时 "
4351
+ ":meth:`slice.indices` 现在会引发 :exc:`ValueError`;在之前版本中它会返回无意义的值 "
4352
+ "(:issue:`14794`)。"
4340
4353
4341
4354
#: ../../whatsnew/3.4.rst:2389
4342
4355
msgid ""
0 commit comments