Skip to content

Commit 87d689f

Browse files
sync with cpython 72263f2a
1 parent be59dd2 commit 87d689f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

library/dataclasses.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.11\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2022-12-06 00:29+0000\n"
8+
"POT-Creation-Date: 2023-01-07 00:30+0000\n"
99
"PO-Revision-Date: 2018-07-15 18:56+0800\n"
1010
"Last-Translator: \n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -610,8 +610,8 @@ msgstr ""
610610

611611
#: ../../library/dataclasses.rst:555
612612
msgid ""
613-
"One of two places where :func:`dataclass` actually inspects the type of a "
614-
"field is to determine if a field is a class variable as defined in :pep:"
613+
"One of the few places where :func:`dataclass` actually inspects the type of "
614+
"a field is to determine if a field is a class variable as defined in :pep:"
615615
"`526`. It does this by checking if the type of the field is ``typing."
616616
"ClassVar``. If a field is a ``ClassVar``, it is excluded from consideration "
617617
"as a field and is ignored by the dataclass mechanisms. Such ``ClassVar`` "
@@ -624,7 +624,7 @@ msgstr ""
624624

625625
#: ../../library/dataclasses.rst:566
626626
msgid ""
627-
"The other place where :func:`dataclass` inspects a type annotation is to "
627+
"Another place where :func:`dataclass` inspects a type annotation is to "
628628
"determine if a field is an init-only variable. It does this by seeing if "
629629
"the type of a field is of type ``dataclasses.InitVar``. If a field is an "
630630
"``InitVar``, it is considered a pseudo-field called an init-only field. As "

library/pathlib.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-01-06 00:32+0000\n"
10+
"POT-Creation-Date: 2023-01-07 00:30+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:07+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -129,14 +129,14 @@ msgstr ""
129129

130130
#: ../../library/pathlib.rst:121
131131
msgid ""
132-
"When several absolute paths are given, the last is taken as an anchor "
133-
"(mimicking :func:`os.path.join`'s behaviour)::"
132+
"If a segment is an absolute path, all previous segments are ignored (like :"
133+
"func:`os.path.join`)::"
134134
msgstr ""
135135

136136
#: ../../library/pathlib.rst:129
137137
msgid ""
138-
"However, in a Windows path, changing the local root doesn't discard the "
139-
"previous drive setting::"
138+
"On Windows, the drive is not reset when a rooted relative path segment (e."
139+
"g., ``r'\\foo'``) is encountered::"
140140
msgstr ""
141141

142142
#: ../../library/pathlib.rst:135
@@ -208,10 +208,10 @@ msgstr ""
208208

209209
#: ../../library/pathlib.rst:215
210210
msgid ""
211-
"The slash operator helps create child paths, mimicking the behaviour of :"
212-
"func:`os.path.join`. For instance, when several absolute paths are given, "
213-
"the last is taken as an anchor; for a Windows path, changing the local root "
214-
"doesn't discard the previous drive setting::"
211+
"The slash operator helps create child paths, like :func:`os.path.join`. If "
212+
"the argument is an absolute path, the previous path is ignored. On Windows, "
213+
"the drive is not reset when the argument is a rooted relative path (e.g., "
214+
"``r'\\foo'``)::"
215215
msgstr ""
216216

217217
#: ../../library/pathlib.rst:233

0 commit comments

Comments
 (0)