Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdbe22c2

Browse files
sync with cpython 7e154bea
1 parent1dbf7ab commitdbe22c2

File tree

2 files changed

+43
-34
lines changed

2 files changed

+43
-34
lines changed

‎faq/programming.po

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version:Python 3.13\n"
1111
"Report-Msgid-Bugs-To:\n"
12-
"POT-Creation-Date:2025-04-02 00:15+0000\n"
12+
"POT-Creation-Date:2025-04-06 00:16+0000\n"
1313
"PO-Revision-Date:2024-04-25 14:17+0800\n"
1414
"Last-Translator:KNChiu <y9760210@gmail.com>\n"
1515
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -3762,16 +3762,18 @@ msgstr ""
37623762
"說,保證識別性的情況有以下三種:"
37633763

37643764
#:../../faq/programming.rst:1870
3765+
#,fuzzy
37653766
msgid""
3766-
"1)Assignments create new names but do not change object identity. After "
3767-
"theassignment ``new = old``, it is guaranteed that ``new is old``."
3767+
"Assignments create new names but do not change object identity. After the "
3768+
"assignment ``new = old``, it is guaranteed that ``new is old``."
37683769
msgstr""
37693770
"1) 賦值建立新名稱但不改變物件識別性。賦值 ``new = old`` 後,保證 ``new is "
37703771
"old``。"
37713772

37723773
#:../../faq/programming.rst:1873
3774+
#,fuzzy
37733775
msgid""
3774-
"2)Putting an object in a container that stores object references does not "
3776+
"Putting an object in a container that stores object references does not "
37753777
"change object identity. After the list assignment ``s[0] = x``, it is "
37763778
"guaranteed that ``s[0] is x``."
37773779
msgstr""
@@ -3781,9 +3783,9 @@ msgstr ""
37813783
#:../../faq/programming.rst:1877
37823784
#,fuzzy
37833785
msgid""
3784-
"3)If an object is a singleton, it means that only one instance of that "
3785-
"objectcan exist. After the assignments ``a = None`` and ``b = None``, it "
3786-
"isguaranteed that ``a is b`` because ``None`` is a singleton."
3786+
"If an object is a singleton, it means that only one instance of that object "
3787+
"can exist. After the assignments ``a = None`` and ``b = None``, it is "
3788+
"guaranteed that ``a is b`` because ``None`` is a singleton."
37873789
msgstr""
37883790
"3)如果一個物件是單例,則意味著該物件只能存在一個實例。在賦值 ``a = None`` "
37893791
"和 ``b = None`` 之後,可以保證 ``a is b`` 因為 ``None`` 是單例。"

‎library/plistlib.po

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.13\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2025-02-12 00:13+0000\n"
10+
"POT-Creation-Date:2025-04-06 00:16+0000\n"
1111
"PO-Revision-Date:2016-01-31 07:27+0000\n"
1212
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -132,118 +132,125 @@ msgstr ""
132132

133133
#:../../library/plistlib.rst:81
134134
msgid""
135-
"The parser for the binary format raises :exc:`InvalidFileException` when the "
136-
"file cannot be parsed."
135+
"The parser raises :exc:`InvalidFileException` when the file cannot be parsed."
137136
msgstr""
138137

139-
#:../../library/plistlib.rst:86../../library/plistlib.rst:131
138+
#:../../library/plistlib.rst:85../../library/plistlib.rst:130
140139
msgid"The keyword-only parameter *aware_datetime* has been added."
141140
msgstr""
142141

143-
#:../../library/plistlib.rst:92
142+
#:../../library/plistlib.rst:91
144143
msgid""
145144
"Load a plist from a bytes or string object. See :func:`load` for an "
146145
"explanation of the keyword arguments."
147146
msgstr""
148147

149-
#:../../library/plistlib.rst:97
148+
#:../../library/plistlib.rst:96
150149
msgid"*data* can be a string when *fmt* equals :data:`FMT_XML`."
151150
msgstr""
152151

153-
#:../../library/plistlib.rst:102
152+
#:../../library/plistlib.rst:101
154153
msgid""
155154
"Write *value* to a plist file. *fp* should be a writable, binary file object."
156155
msgstr""
157156

158-
#:../../library/plistlib.rst:105
157+
#:../../library/plistlib.rst:104
159158
msgid""
160159
"The *fmt* argument specifies the format of the plist file and can be one of "
161160
"the following values:"
162161
msgstr""
163162

164-
#:../../library/plistlib.rst:108
163+
#:../../library/plistlib.rst:107
165164
msgid":data:`FMT_XML`: XML formatted plist file"
166165
msgstr""
167166

168-
#:../../library/plistlib.rst:110
167+
#:../../library/plistlib.rst:109
169168
msgid":data:`FMT_BINARY`: Binary formatted plist file"
170169
msgstr""
171170

172-
#:../../library/plistlib.rst:112
171+
#:../../library/plistlib.rst:111
173172
msgid""
174173
"When *sort_keys* is true (the default) the keys for dictionaries will be "
175174
"written to the plist in sorted order, otherwise they will be written in the "
176175
"iteration order of the dictionary."
177176
msgstr""
178177

179-
#:../../library/plistlib.rst:116
178+
#:../../library/plistlib.rst:115
180179
msgid""
181180
"When *skipkeys* is false (the default) the function raises :exc:`TypeError` "
182181
"when a key of a dictionary is not a string, otherwise such keys are skipped."
183182
msgstr""
184183

185-
#:../../library/plistlib.rst:119
184+
#:../../library/plistlib.rst:118
186185
msgid""
187186
"When *aware_datetime* is true and any field with type ``datetime.datetime`` "
188187
"is set as an :ref:`aware object <datetime-naive-aware>`, it will convert to "
189188
"UTC timezone before writing it."
190189
msgstr""
191190

192-
#:../../library/plistlib.rst:123
191+
#:../../library/plistlib.rst:122
193192
msgid""
194193
"A :exc:`TypeError` will be raised if the object is of an unsupported type or "
195194
"a container that contains objects of unsupported types."
196195
msgstr""
197196

198-
#:../../library/plistlib.rst:126
197+
#:../../library/plistlib.rst:125
199198
msgid""
200199
"An :exc:`OverflowError` will be raised for integer values that cannot be "
201200
"represented in (binary) plist files."
202201
msgstr""
203202

204-
#:../../library/plistlib.rst:137
203+
#:../../library/plistlib.rst:136
205204
msgid""
206205
"Return *value* as a plist-formatted bytes object. See the documentation for :"
207206
"func:`dump` for an explanation of the keyword arguments of this function."
208207
msgstr""
209208

210-
#:../../library/plistlib.rst:144
209+
#:../../library/plistlib.rst:143
211210
msgid"The following classes are available:"
212211
msgstr""
213212

214-
#:../../library/plistlib.rst:148
213+
#:../../library/plistlib.rst:147
215214
msgid""
216215
"Wraps an :class:`int`. This is used when reading or writing NSKeyedArchiver "
217216
"encoded data, which contains UID (see PList manual)."
218217
msgstr""
219218

220-
#:../../library/plistlib.rst:151
219+
#:../../library/plistlib.rst:150
221220
msgid""
222221
"It has one attribute, :attr:`data`, which can be used to retrieve the int "
223222
"value of the UID. :attr:`data` must be in the range ``0 <= data < 2**64``."
224223
msgstr""
225224

226-
#:../../library/plistlib.rst:157
225+
#:../../library/plistlib.rst:156
227226
msgid"The following constants are available:"
228227
msgstr""
229228

230-
#:../../library/plistlib.rst:161
229+
#:../../library/plistlib.rst:160
231230
msgid"The XML format for plist files."
232231
msgstr""
233232

234-
#:../../library/plistlib.rst:168
233+
#:../../library/plistlib.rst:167
235234
msgid"The binary format for plist files"
236235
msgstr""
237236

238-
#:../../library/plistlib.rst:174
237+
#:../../library/plistlib.rst:172
238+
msgid"The module defines the following exceptions:"
239+
msgstr""
240+
241+
#:../../library/plistlib.rst:176
242+
msgid"Raised when a file cannot be parsed."
243+
msgstr""
244+
245+
#:../../library/plistlib.rst:182
239246
msgid"Examples"
240247
msgstr"範例"
241248

242-
#:../../library/plistlib.rst:176
249+
#:../../library/plistlib.rst:184
243250
msgid"Generating a plist::"
244251
msgstr""
245252

246-
#:../../library/plistlib.rst:178
253+
#:../../library/plistlib.rst:186
247254
msgid""
248255
"import datetime\n"
249256
"import plistlib\n"
@@ -285,11 +292,11 @@ msgstr ""
285292
")\n"
286293
"print(plistlib.dumps(pl).decode())"
287294

288-
#:../../library/plistlib.rst:198
295+
#:../../library/plistlib.rst:206
289296
msgid"Parsing a plist::"
290297
msgstr""
291298

292-
#:../../library/plistlib.rst:200
299+
#:../../library/plistlib.rst:208
293300
msgid""
294301
"import plistlib\n"
295302
"\n"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp