Skip to content

Commit b736991

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 0ab2384c
1 parent d9ab630 commit b736991

18 files changed

+1720
-1711
lines changed

c-api/contextvars.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.12\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
8+
"POT-Creation-Date: 2024-03-07 17:26+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-"
@@ -19,14 +19,14 @@ msgstr ""
1919
msgid "Context Variables Objects"
2020
msgstr ""
2121

22-
#: ../../c-api/contextvars.rst:13
22+
#: ../../c-api/contextvars.rst:15
2323
msgid ""
2424
"In Python 3.7.1 the signatures of all context variables C APIs were "
2525
"**changed** to use :c:type:`PyObject` pointers instead of :c:type:"
2626
"`PyContext`, :c:type:`PyContextVar`, and :c:type:`PyContextToken`, e.g.::"
2727
msgstr ""
2828

29-
#: ../../c-api/contextvars.rst:24
29+
#: ../../c-api/contextvars.rst:26
3030
msgid "See :issue:`34762` for more details."
3131
msgstr "更多細節請見 :issue:`34762`\\ 。"
3232

c-api/import.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-02-06 00:03+0000\n"
11+
"POT-Creation-Date: 2024-03-07 17:26+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:06+0000\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -320,6 +320,10 @@ msgstr ""
320320
msgid "The module name, as an ASCII encoded string."
321321
msgstr ""
322322

323+
#: ../../c-api/import.rst:297
324+
msgid "Initialization function for a module built into the interpreter."
325+
msgstr ""
326+
323327
#: ../../c-api/import.rst:302
324328
msgid ""
325329
"Add a collection of modules to the table of built-in modules. The *newtab* "

c-api/init.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-02-12 00:03+0000\n"
11+
"POT-Creation-Date: 2024-03-07 17:26+0000\n"
1212
"PO-Revision-Date: 2023-04-24 20:49+0800\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -2074,7 +2074,7 @@ msgid ""
20742074
"`PyGILState API<gilstate>`."
20752075
msgstr ""
20762076

2077-
#: ../../c-api/init.rst:1825
2077+
#: ../../c-api/init.rst:1827
20782078
msgid ""
20792079
"If this function is called in a subinterpreter, the function *func* is now "
20802080
"scheduled to be called from the subinterpreter, rather than being called "

c-api/refcounting.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-08-14 22:55+0800\n"
11+
"POT-Creation-Date: 2024-03-07 17:26+0000\n"
1212
"PO-Revision-Date: 2023-08-06 14:19+0800\n"
1313
"Last-Translator: Matt Wang <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -52,13 +52,13 @@ msgid ""
5252
msgstr "使用 :c:func:`Py_SET_REFCNT()` 函式設定物件參照計數。"
5353

5454
#: ../../c-api/refcounting.rst:26
55-
msgid "The parameter type is no longer :c:expr:`const PyObject*`."
56-
msgstr "參數型別不再是 :c:expr:`const PyObject*`。"
57-
58-
#: ../../c-api/refcounting.rst:29
5955
msgid ":c:func:`Py_REFCNT()` is changed to the inline static function."
6056
msgstr ":c:func:`Py_REFCNT()` 更改為行內靜態函式 (inline static function)。"
6157

58+
#: ../../c-api/refcounting.rst:29
59+
msgid "The parameter type is no longer :c:expr:`const PyObject*`."
60+
msgstr "參數型別不再是 :c:expr:`const PyObject*`。"
61+
6262
#: ../../c-api/refcounting.rst:35
6363
msgid "Set the object *o* reference counter to *refcnt*."
6464
msgstr "設定物件 *o* 的參照計數。"

library/asyncio-eventloop.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-03-06 00:03+0000\n"
10+
"POT-Creation-Date: 2024-03-07 17:26+0000\n"
1111
"PO-Revision-Date: 2022-02-20 12:36+0800\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -837,31 +837,31 @@ msgid ""
837837
msgstr ""
838838

839839
#: ../../library/asyncio-eventloop.rst:608
840+
msgid "Added support for Windows."
841+
msgstr "新增對於 Windows 的支援。"
842+
843+
#: ../../library/asyncio-eventloop.rst:611
840844
msgid ""
841845
"The *reuse_address* parameter is no longer supported, as using :ref:`socket."
842846
"SO_REUSEADDR <socket-unix-constants>` poses a significant security concern "
843847
"for UDP. Explicitly passing ``reuse_address=True`` will raise an exception."
844848
msgstr ""
845849

846-
#: ../../library/asyncio-eventloop.rst:614
850+
#: ../../library/asyncio-eventloop.rst:617
847851
msgid ""
848852
"When multiple processes with differing UIDs assign sockets to an identical "
849853
"UDP socket address with ``SO_REUSEADDR``, incoming packets can become "
850854
"randomly distributed among the sockets."
851855
msgstr ""
852856

853-
#: ../../library/asyncio-eventloop.rst:618
857+
#: ../../library/asyncio-eventloop.rst:621
854858
msgid ""
855859
"For supported platforms, *reuse_port* can be used as a replacement for "
856860
"similar functionality. With *reuse_port*, :ref:`socket.SO_REUSEPORT <socket-"
857861
"unix-constants>` is used instead, which specifically prevents processes with "
858862
"differing UIDs from assigning sockets to the same socket address."
859863
msgstr ""
860864

861-
#: ../../library/asyncio-eventloop.rst:625
862-
msgid "Added support for Windows."
863-
msgstr "新增對於 Windows 的支援。"
864-
865865
#: ../../library/asyncio-eventloop.rst:628
866866
msgid ""
867867
"The *reuse_address* parameter, disabled since Python 3.8.1, 3.7.6 and "

library/bz2.po

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-10-24 00:03+0000\n"
10+
"POT-Creation-Date: 2024-03-07 17:26+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:40+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -99,11 +99,11 @@ msgid ""
9999
"handling behavior, and line ending(s)."
100100
msgstr ""
101101

102-
#: ../../library/bz2.rst:59 ../../library/bz2.rst:163
102+
#: ../../library/bz2.rst:59 ../../library/bz2.rst:162
103103
msgid "The ``'x'`` (exclusive creation) mode was added."
104104
msgstr ""
105105

106-
#: ../../library/bz2.rst:62 ../../library/bz2.rst:170
106+
#: ../../library/bz2.rst:62 ../../library/bz2.rst:169
107107
msgid "Accepts a :term:`path-like object`."
108108
msgstr ""
109109

@@ -222,93 +222,93 @@ msgid ""
222222
"stream files."
223223
msgstr ""
224224

225-
#: ../../library/bz2.rst:166
225+
#: ../../library/bz2.rst:165
226226
msgid ""
227227
"The :meth:`~io.BufferedIOBase.read` method now accepts an argument of "
228228
"``None``."
229229
msgstr ""
230230

231-
#: ../../library/bz2.rst:173
231+
#: ../../library/bz2.rst:172
232232
msgid ""
233233
"The *buffering* parameter has been removed. It was ignored and deprecated "
234234
"since Python 3.0. Pass an open file object to control how the file is opened."
235235
msgstr ""
236236

237-
#: ../../library/bz2.rst:178
237+
#: ../../library/bz2.rst:177
238238
msgid "The *compresslevel* parameter became keyword-only."
239239
msgstr ""
240240

241-
#: ../../library/bz2.rst:180
241+
#: ../../library/bz2.rst:179
242242
msgid ""
243243
"This class is thread unsafe in the face of multiple simultaneous readers or "
244244
"writers, just like its equivalent classes in :mod:`gzip` and :mod:`lzma` "
245245
"have always been."
246246
msgstr ""
247247

248-
#: ../../library/bz2.rst:187
248+
#: ../../library/bz2.rst:186
249249
msgid "Incremental (de)compression"
250250
msgstr ""
251251

252-
#: ../../library/bz2.rst:191
252+
#: ../../library/bz2.rst:190
253253
msgid ""
254254
"Create a new compressor object. This object may be used to compress data "
255255
"incrementally. For one-shot compression, use the :func:`compress` function "
256256
"instead."
257257
msgstr ""
258258

259-
#: ../../library/bz2.rst:195 ../../library/bz2.rst:283
259+
#: ../../library/bz2.rst:194 ../../library/bz2.rst:282
260260
msgid ""
261261
"*compresslevel*, if given, must be an integer between ``1`` and ``9``. The "
262262
"default is ``9``."
263263
msgstr ""
264264

265-
#: ../../library/bz2.rst:200
265+
#: ../../library/bz2.rst:199
266266
msgid ""
267267
"Provide data to the compressor object. Returns a chunk of compressed data if "
268268
"possible, or an empty byte string otherwise."
269269
msgstr ""
270270

271-
#: ../../library/bz2.rst:203
271+
#: ../../library/bz2.rst:202
272272
msgid ""
273273
"When you have finished providing data to the compressor, call the :meth:"
274274
"`flush` method to finish the compression process."
275275
msgstr ""
276276

277-
#: ../../library/bz2.rst:209
277+
#: ../../library/bz2.rst:208
278278
msgid ""
279279
"Finish the compression process. Returns the compressed data left in internal "
280280
"buffers."
281281
msgstr ""
282282

283-
#: ../../library/bz2.rst:212
283+
#: ../../library/bz2.rst:211
284284
msgid ""
285285
"The compressor object may not be used after this method has been called."
286286
msgstr ""
287287

288-
#: ../../library/bz2.rst:217
288+
#: ../../library/bz2.rst:216
289289
msgid ""
290290
"Create a new decompressor object. This object may be used to decompress data "
291291
"incrementally. For one-shot compression, use the :func:`decompress` function "
292292
"instead."
293293
msgstr ""
294294

295-
#: ../../library/bz2.rst:222
295+
#: ../../library/bz2.rst:221
296296
msgid ""
297297
"This class does not transparently handle inputs containing multiple "
298298
"compressed streams, unlike :func:`decompress` and :class:`BZ2File`. If you "
299299
"need to decompress a multi-stream input with :class:`BZ2Decompressor`, you "
300300
"must use a new decompressor for each stream."
301301
msgstr ""
302302

303-
#: ../../library/bz2.rst:229
303+
#: ../../library/bz2.rst:228
304304
msgid ""
305305
"Decompress *data* (a :term:`bytes-like object`), returning uncompressed data "
306306
"as bytes. Some of *data* may be buffered internally, for use in later calls "
307307
"to :meth:`decompress`. The returned data should be concatenated with the "
308308
"output of any previous calls to :meth:`decompress`."
309309
msgstr ""
310310

311-
#: ../../library/bz2.rst:235
311+
#: ../../library/bz2.rst:234
312312
msgid ""
313313
"If *max_length* is nonnegative, returns at most *max_length* bytes of "
314314
"decompressed data. If this limit is reached and further output can be "
@@ -317,99 +317,99 @@ msgid ""
317317
"``b''`` to obtain more of the output."
318318
msgstr ""
319319

320-
#: ../../library/bz2.rst:242
320+
#: ../../library/bz2.rst:241
321321
msgid ""
322322
"If all of the input data was decompressed and returned (either because this "
323323
"was less than *max_length* bytes, or because *max_length* was negative), "
324324
"the :attr:`~.needs_input` attribute will be set to ``True``."
325325
msgstr ""
326326

327-
#: ../../library/bz2.rst:247
327+
#: ../../library/bz2.rst:246
328328
msgid ""
329329
"Attempting to decompress data after the end of stream is reached raises an :"
330330
"exc:`EOFError`. Any data found after the end of the stream is ignored and "
331331
"saved in the :attr:`~.unused_data` attribute."
332332
msgstr ""
333333

334-
#: ../../library/bz2.rst:251
334+
#: ../../library/bz2.rst:250
335335
msgid "Added the *max_length* parameter."
336336
msgstr "新增 *max_length* 參數。"
337337

338-
#: ../../library/bz2.rst:256
338+
#: ../../library/bz2.rst:255
339339
msgid "``True`` if the end-of-stream marker has been reached."
340340
msgstr ""
341341

342-
#: ../../library/bz2.rst:263
342+
#: ../../library/bz2.rst:262
343343
msgid "Data found after the end of the compressed stream."
344344
msgstr ""
345345

346-
#: ../../library/bz2.rst:265
346+
#: ../../library/bz2.rst:264
347347
msgid ""
348348
"If this attribute is accessed before the end of the stream has been reached, "
349349
"its value will be ``b''``."
350350
msgstr ""
351351

352-
#: ../../library/bz2.rst:270
352+
#: ../../library/bz2.rst:269
353353
msgid ""
354354
"``False`` if the :meth:`.decompress` method can provide more decompressed "
355355
"data before requiring new uncompressed input."
356356
msgstr ""
357357

358-
#: ../../library/bz2.rst:277
358+
#: ../../library/bz2.rst:276
359359
msgid "One-shot (de)compression"
360360
msgstr ""
361361

362-
#: ../../library/bz2.rst:281
362+
#: ../../library/bz2.rst:280
363363
msgid "Compress *data*, a :term:`bytes-like object <bytes-like object>`."
364364
msgstr ""
365365

366-
#: ../../library/bz2.rst:286
366+
#: ../../library/bz2.rst:285
367367
msgid "For incremental compression, use a :class:`BZ2Compressor` instead."
368368
msgstr ""
369369

370-
#: ../../library/bz2.rst:291
370+
#: ../../library/bz2.rst:290
371371
msgid "Decompress *data*, a :term:`bytes-like object <bytes-like object>`."
372372
msgstr ""
373373

374-
#: ../../library/bz2.rst:293
374+
#: ../../library/bz2.rst:292
375375
msgid ""
376376
"If *data* is the concatenation of multiple compressed streams, decompress "
377377
"all of the streams."
378378
msgstr ""
379379

380-
#: ../../library/bz2.rst:296
380+
#: ../../library/bz2.rst:295
381381
msgid "For incremental decompression, use a :class:`BZ2Decompressor` instead."
382382
msgstr ""
383383

384-
#: ../../library/bz2.rst:298
384+
#: ../../library/bz2.rst:297
385385
msgid "Support for multi-stream inputs was added."
386386
msgstr ""
387387

388-
#: ../../library/bz2.rst:304
388+
#: ../../library/bz2.rst:303
389389
msgid "Examples of usage"
390390
msgstr "用法範例"
391391

392-
#: ../../library/bz2.rst:306
392+
#: ../../library/bz2.rst:305
393393
msgid "Below are some examples of typical usage of the :mod:`bz2` module."
394394
msgstr ""
395395

396-
#: ../../library/bz2.rst:308
396+
#: ../../library/bz2.rst:307
397397
msgid ""
398398
"Using :func:`compress` and :func:`decompress` to demonstrate round-trip "
399399
"compression:"
400400
msgstr ""
401401

402-
#: ../../library/bz2.rst:326
402+
#: ../../library/bz2.rst:325
403403
msgid "Using :class:`BZ2Compressor` for incremental compression:"
404404
msgstr ""
405405

406-
#: ../../library/bz2.rst:344
406+
#: ../../library/bz2.rst:343
407407
msgid ""
408408
"The example above uses a very \"nonrandom\" stream of data (a stream of "
409409
"``b\"z\"`` chunks). Random data tends to compress poorly, while ordered, "
410410
"repetitive data usually yields a high compression ratio."
411411
msgstr ""
412412

413-
#: ../../library/bz2.rst:348
413+
#: ../../library/bz2.rst:347
414414
msgid "Writing and reading a bzip2-compressed file in binary mode:"
415415
msgstr ""

0 commit comments

Comments
 (0)