@@ -599,6 +599,8 @@ msgid ""
599
599
"information displayed on a local clock (or stored in a Python datetime "
600
600
"instance) is insufficient to identify a particular moment in time."
601
601
msgstr ""
602
+ "在世界上大多数地方,过去和将来都会存在本地时钟后移的时候。 在这种时候,本地时钟会在同一天内两次显示相同的时间。 "
603
+ "对于这些情况,本地时钟所显示的(或存储在 Python datetime 实例中的)信息将不足以标识某个特定的时间点。"
602
604
603
605
#: ../../whatsnew/3.6.rst:476
604
606
msgid ""
@@ -607,13 +609,17 @@ msgid ""
607
609
"differentiate between two moments in time for which local times are the "
608
610
"same::"
609
611
msgstr ""
612
+ ":pep:`495` 为 :class:`datetime.datetime` 和 :class:`datetime.time` 类的实例添加了新的 "
613
+ "*fold* 属性以在本地时间相同的两个时间点之间进行区分::"
610
614
611
615
#: ../../whatsnew/3.6.rst:491
612
616
msgid ""
613
617
"The values of the :attr:`fold <datetime.datetime.fold>` attribute have the "
614
618
"value ``0`` for all instances except those that represent the second "
615
619
"(chronologically) moment in time in an ambiguous case."
616
620
msgstr ""
621
+ ":attr:`fold <datetime.datetime.fold>` 属性的值在大多数实例上均为 "
622
+ "``0``,只有在代表存在歧义的时间的第二个(按发生顺序)实例上例外。"
617
623
618
624
#: ../../whatsnew/3.6.rst:498
619
625
msgid ":pep:`495` -- Local Time Disambiguation"
@@ -634,7 +640,7 @@ msgid ""
634
640
"Representing filesystem paths is best performed with str (Unicode) rather "
635
641
"than bytes. However, there are some situations where using bytes is "
636
642
"sufficient and correct."
637
- msgstr ""
643
+ msgstr "在表示文件系统路径时最好是使用 str (Unicode) 而不是 bytes。 不过,在某些情况下使用 bytes 就是足够而且正确的。 "
638
644
639
645
#: ../../whatsnew/3.6.rs
73E3
t:511
640
646
msgid ""
@@ -643,6 +649,9 @@ msgid ""
643
649
"on Windows, provided those bytes are encoded with the encoding returned by "
644
650
":func:`sys.getfilesystemencoding()`, which now defaults to ``'utf-8'``."
645
651
msgstr ""
652
+ "在 Python 3.6 之前,在 Windows 上使用 bytes 路径值可能会导致数据丢失。 有了这一更改,现在 Windows 上将支持使用 "
653
+ "bytes 来表示路径,前提是这些 bytes 值是用 :func:`sys.getfilesystemencoding()` "
654
+ "所返回的编码格式来编码的,现在此编码格式默认为 ``'utf-8'``。"
646
655
647
656
#: ../../whatsnew/3.6.rst:516
648
657
msgid ""
0 commit comments