@@ -4258,6 +4258,12 @@ msgid ""
4258
4258
"Cannon in :issue:`18416`). is specified on the command-line) "
4259
4259
"(:issue:`18416`)."
4260
4260
msgstr ""
4261
+ "对于空字符串 :class:`importlib.machinery.PathFinder` 现在会将当前工作目录传给 "
4262
+ ":data:`sys.path_hooks` 中的对象。 这导致 :data:`sys.path_importer_cache` 绝不会包含 "
4263
+ "``''``,因此基于 :data:`sys.path` 迭代 :data:`sys.path_importer_cache` 将不无找出所有的键。 "
4264
+ "当从当前工作目录导入时模块的 ``__file__`` 现在也将是一个绝对路径,包括在命令行中指定解释器使用 ``-m`` "
4265
+ "的情况(但当一个脚本已经直接使用相对路径被执行时的 ``__main__.__file__`` 除外) (由 Brett Cannon 在 "
4266
+ ":issue:`18416` 中贡献)。 (:issue:`18416`)。"
4261
4267
4262
4268
#: ../../whatsnew/3.4.rst:2348
4263
4269
msgid ""
@@ -4267,6 +4273,10 @@ msgid ""
4267
4273
"keyword. If you've been paying attention to deprecation warnings your code "
4268
4274
"should already be specifying any additional arguments via keywords."
4269
4275
msgstr ""
4276
+ "传给 :class:`~http.client.HTTPConnection` 和 "
4277
+ ":class:`~http.client.HTTPSConnection` 的 *strict* "
4278
+ "参数被移除会改变剩余参数的含义,如果你是以位置参数而不是关键字参数方式指定它们的话。 "
4279
+ "如果你已经注意到弃用警告那么你的代码应当已经通过关键字参数方式指定所有额外参数了。"
4270
4280
4271
4281
#: ../../whatsnew/3.4.rst:2354
4272
4282
msgid ""
@@ -4276,6 +4286,9 @@ msgid ""
4276
4286
"compliance with the language spec; Jython and PyPy already were. "
4277
4287
"(:issue:`17434`)."
4278
4288
msgstr ""
4289
+ "现在 ``from __future__ import ...`` 语句之间的字符串 *总是* 会引发 :exc:`SyntaxError`。 "
4290
+ "在之前版本中如果没有开头的文档字符串,则中间的字符串有时会被忽略。 这使得 CPython 与语言规范保持一致;Jython 和 PyPy "
4291
+ "已经是这样了。 (:issue:`17434`)。"
4279
4292
4280
4293
#: ../../whatsnew/3.4.rst:2360
4281
4294
msgid ""
@@ -4285,6 +4298,10 @@ msgid ""
4285
4298
":exc:`AttributeError`. In addition, :meth:`~ssl.SSLSocket.getpeercert` will"
4286
4299
" raise a :exc:`ValueError` if the handshake has not yet been done."
4287
4300
msgstr ""
4301
+ "当 ``SSLSocket`` 未连接时 :meth:`ssl.SSLSocket.getpeercert` 和 "
4302
+ ":meth:`ssl.SSLSocket.do_handshake` 现在会引发 :exc:`OSError` 并附带 "
4303
+ "``ENOTCONN``,而非如之前版本的行为那样引发 :exc:`AttributeError`。 此外,当握手尚未完成时 "
4304
+ ":meth:`~ssl.SSLSocket.getpeercert` 将会引发 :exc:`ValueError`。"
4288
4305
4289
4306
#: ../../whatsnew/3.4.rst:2366
4290
4307
msgid ""
0 commit comments