Skip to content

Commit 6d8b18c

Browse files
sync with cpython cf4573b5
1 parent ac5d692 commit 6d8b18c

File tree

2 files changed

+41
-42
lines changed

2 files changed

+41
-42
lines changed

library/mmap.po

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-06-27 07:36+0000\n"
9+
"POT-Creation-Date: 2025-09-22 00:18+0000\n"
1010
"PO-Revision-Date: 2018-05-23 16:06+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -299,12 +299,12 @@ msgid ""
299299
"``-1`` on failure."
300300
msgstr ""
301301

302-
#: ../../library/mmap.rst:199 ../../library/mmap.rst:291
303-
#: ../../library/mmap.rst:331
302+
#: ../../library/mmap.rst:199 ../../library/mmap.rst:292
303+
#: ../../library/mmap.rst:332
304304
msgid "Writable :term:`bytes-like object` is now accepted."
305305
msgstr ""
306306

307-
#: ../../library/mmap.rst:205
307+
#: ../../library/mmap.rst:206
308308
msgid ""
309309
"Flushes changes made to the in-memory copy of a file back to disk. Without "
310310
"use of this call there is no guarantee that changes are written back before "
@@ -314,20 +314,20 @@ msgid ""
314314
"`PAGESIZE` or :const:`ALLOCATIONGRANULARITY`."
315315
msgstr ""
316316

317-
#: ../../library/mmap.rst:212
317+
#: ../../library/mmap.rst:213
318318
msgid ""
319319
"``None`` is returned to indicate success. An exception is raised when the "
320320
"call failed."
321321
msgstr ""
322322

323-
#: ../../library/mmap.rst:215
323+
#: ../../library/mmap.rst:216
324324
msgid ""
325325
"Previously, a nonzero value was returned on success; zero was returned on "
326326
"error under Windows. A zero value was returned on success; an exception was "
327327
"raised on error under Unix."
328328
msgstr ""
329329

330-
#: ../../library/mmap.rst:223
330+
#: ../../library/mmap.rst:224
331331
msgid ""
332332
"Send advice *option* to the kernel about the memory region beginning at "
333333
"*start* and extending *length* bytes. *option* must be one of the :ref:"
@@ -336,105 +336,105 @@ msgid ""
336336
"(including Linux), *start* must be a multiple of the :const:`PAGESIZE`."
337337
msgstr ""
338338

339-
#: ../../library/mmap.rst:230
339+
#: ../../library/mmap.rst:231
340340
msgid "Availability: Systems with the ``madvise()`` system call."
341341
msgstr ""
342342

343-
#: ../../library/mmap.rst:237
343+
#: ../../library/mmap.rst:238
344344
msgid ""
345345
"Copy the *count* bytes starting at offset *src* to the destination index "
346346
"*dest*. If the mmap was created with :const:`ACCESS_READ`, then calls to "
347347
"move will raise a :exc:`TypeError` exception."
348348
msgstr ""
349349

350-
#: ../../library/mmap.rst:244
350+
#: ../../library/mmap.rst:245
351351
msgid ""
352352
"Return a :class:`bytes` containing up to *n* bytes starting from the current "
353353
"file position. If the argument is omitted, ``None`` or negative, return all "
354354
"bytes from the current file position to the end of the mapping. The file "
355355
"position is updated to point after the bytes that were returned."
356356
msgstr ""
357357

358-
#: ../../library/mmap.rst:250
358+
#: ../../library/mmap.rst:251
359359
msgid "Argument can be omitted or ``None``."
360360
msgstr ""
361361

362-
#: ../../library/mmap.rst:255
362+
#: ../../library/mmap.rst:256
363363
msgid ""
364364
"Returns a byte at the current file position as an integer, and advances the "
365365
"file position by 1."
366366
msgstr ""
367367

368-
#: ../../library/mmap.rst:261
368+
#: ../../library/mmap.rst:262
369369
msgid ""
370370
"Returns a single line, starting at the current file position and up to the "
371371
"next newline. The file position is updated to point after the bytes that "
372372
"were returned."
373373
msgstr ""
374374

375-
#: ../../library/mmap.rst:268
375+
#: ../../library/mmap.rst:269
376376
msgid "Resizes the map and the underlying file, if any."
377377
msgstr ""
378378

379-
#: ../../library/mmap.rst:270
379+
#: ../../library/mmap.rst:271
380380
msgid ""
381381
"Resizing a map created with *access* of :const:`ACCESS_READ` or :const:"
382382
"`ACCESS_COPY`, will raise a :exc:`TypeError` exception. Resizing a map "
383383
"created with *trackfd* set to ``False``, will raise a :exc:`ValueError` "
384384
"exception."
385385
msgstr ""
386386

387-
#: ../../library/mmap.rst:275
387+
#: ../../library/mmap.rst:276
388388
msgid ""
389389
"**On Windows**: Resizing the map will raise an :exc:`OSError` if there are "
390390
"other maps against the same named file. Resizing an anonymous map (ie "
391391
"against the pagefile) will silently create a new map with the original data "
392392
"copied over up to the length of the new size."
393393
msgstr ""
394394

395-
#: ../../library/mmap.rst:280
395+
#: ../../library/mmap.rst:281
396396
msgid ""
397397
"Correctly fails if attempting to resize when another map is held Allows "
398398
"resize against an anonymous map on Windows"
399399
msgstr ""
400400

401-
#: ../../library/mmap.rst:286
401+
#: ../../library/mmap.rst:287
402402
msgid ""
403403
"Returns the highest index in the object where the subsequence *sub* is "
404404
"found, such that *sub* is contained in the range [*start*, *end*]. Optional "
405405
"arguments *start* and *end* are interpreted as in slice notation. Returns "
406406
"``-1`` on failure."
407407
msgstr ""
408408

409-
#: ../../library/mmap.rst:297
409+
#: ../../library/mmap.rst:298
410410
msgid ""
411411
"Set the file's current position. *whence* argument is optional and defaults "
412412
"to ``os.SEEK_SET`` or ``0`` (absolute file positioning); other values are "
413413
"``os.SEEK_CUR`` or ``1`` (seek relative to the current position) and ``os."
414414
"SEEK_END`` or ``2`` (seek relative to the file's end)."
415415
msgstr ""
416416

417-
#: ../../library/mmap.rst:302
417+
#: ../../library/mmap.rst:303
418418
msgid "Return the new absolute position instead of ``None``."
419419
msgstr ""
420420

421-
#: ../../library/mmap.rst:307
421+
#: ../../library/mmap.rst:308
422422
msgid ""
423423
"Return whether the file supports seeking, and the return value is always "
424424
"``True``."
425425
msgstr ""
426426

427-
#: ../../library/mmap.rst:313
427+
#: ../../library/mmap.rst:314
428428
msgid ""
429429
"Return the length of the file, which can be larger than the size of the "
430430
"memory-mapped area."
431431
msgstr ""
432432

433-
#: ../../library/mmap.rst:319
433+
#: ../../library/mmap.rst:320
434434
msgid "Returns the current position of the file pointer."
435435
msgstr ""
436436

437-
#: ../../library/mmap.rst:324
437+
#: ../../library/mmap.rst:325
438438
msgid ""
439439
"Write the bytes in *bytes* into memory at the current position of the file "
440440
"pointer and return the number of bytes written (never less than "
@@ -444,57 +444,57 @@ msgid ""
444444
"it will raise a :exc:`TypeError` exception."
445445
msgstr ""
446446

447-
#: ../../library/mmap.rst:334
447+
#: ../../library/mmap.rst:335
448448
msgid "The number of bytes written is now returned."
449449
msgstr ""
450450

451-
#: ../../library/mmap.rst:340
451+
#: ../../library/mmap.rst:341
452452
msgid ""
453453
"Write the integer *byte* into memory at the current position of the file "
454454
"pointer; the file position is advanced by ``1``. If the mmap was created "
455455
"with :const:`ACCESS_READ`, then writing to it will raise a :exc:`TypeError` "
456456
"exception."
457457
msgstr ""
458458

459-
#: ../../library/mmap.rst:348
459+
#: ../../library/mmap.rst:349
460460
msgid "MADV_* Constants"
461461
msgstr "MADV_* 常數"
462462

463-
#: ../../library/mmap.rst:375
463+
#: ../../library/mmap.rst:376
464464
msgid ""
465465
"These options can be passed to :meth:`mmap.madvise`. Not every option will "
466466
"be present on every system."
467467
msgstr ""
468468

469-
#: ../../library/mmap.rst:378
469+
#: ../../library/mmap.rst:379
470470
msgid "Availability: Systems with the madvise() system call."
471471
msgstr ""
472472

473-
#: ../../library/mmap.rst:385
473+
#: ../../library/mmap.rst:386
474474
msgid "MAP_* Constants"
475475
msgstr "MAP_* 常數"
476476

477-
#: ../../library/mmap.rst:409
477+
#: ../../library/mmap.rst:410
478478
msgid ""
479479
"These are the various flags that can be passed to :meth:`mmap.mmap`. :data:"
480480
"`MAP_ALIGNED_SUPER` is only available at FreeBSD and :data:`MAP_CONCEAL` is "
481481
"only available at OpenBSD. Note that some options might not be present on "
482482
"some systems."
483483
msgstr ""
484484

485-
#: ../../library/mmap.rst:413
485+
#: ../../library/mmap.rst:414
486486
msgid "Added :data:`MAP_POPULATE` constant."
487487
msgstr "新增 :data:`MAP_POPULATE` 常數。"
488488

489-
#: ../../library/mmap.rst:416
489+
#: ../../library/mmap.rst:417
490490
msgid "Added :data:`MAP_STACK` constant."
491491
msgstr "新增 :data:`MAP_STACK` 常數。"
492492

493-
#: ../../library/mmap.rst:419
493+
#: ../../library/mmap.rst:420
494494
msgid "Added :data:`MAP_ALIGNED_SUPER` and :data:`MAP_CONCEAL` constants."
495495
msgstr "新增 :data:`MAP_ALIGNED_SUPER` 和 :data:`MAP_CONCEAL` 常數。"
496496

497-
#: ../../library/mmap.rst:422
497+
#: ../../library/mmap.rst:423
498498
msgid ""
499499
"Added :data:`MAP_32BIT`, :data:`MAP_HASSEMAPHORE`, :data:`MAP_JIT`, :data:"
500500
"`MAP_NOCACHE`, :data:`MAP_NOEXTEND`, :data:`MAP_NORESERVE`, :data:"

library/os.po

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-09-12 00:14+0000\n"
9+
"POT-Creation-Date: 2025-09-22 00:18+0000\n"
1010
"PO-Revision-Date: 2024-04-29 15:24+0800\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -2183,9 +2183,8 @@ msgid ""
21832183
"functions in the :mod:`os` module must be a string specifying a file path. "
21842184
"However, some functions now alternatively accept an open file descriptor for "
21852185
"their *path* argument. The function will then operate on the file referred "
2186-
"to by the descriptor. (For POSIX systems, Python will call the variant of "
2187-
"the function prefixed with ``f`` (e.g. call ``fchdir`` instead of "
2188-
"``chdir``).)"
2186+
"to by the descriptor. For POSIX systems, Python will call the variant of the "
2187+
"function prefixed with ``f`` (e.g. call ``fchdir`` instead of ``chdir``)."
21892188
msgstr ""
21902189

21912190
#: ../../library/os.rst:2015
@@ -2207,7 +2206,7 @@ msgid ""
22072206
"**paths relative to directory descriptors:** If *dir_fd* is not ``None``, it "
22082207
"should be a file descriptor referring to a directory, and the path to "
22092208
"operate on should be relative; path will then be relative to that "
2210-
"directory. If the path is absolute, *dir_fd* is ignored. (For POSIX "
2209+
"directory. If the path is absolute, *dir_fd* is ignored. For POSIX "
22112210
"systems, Python will call the variant of the function with an ``at`` suffix "
22122211
"and possibly prefixed with ``f`` (e.g. call ``faccessat`` instead of "
22132212
"``access``)."
@@ -2225,8 +2224,8 @@ msgid ""
22252224
"**not following symlinks:** If *follow_symlinks* is ``False``, and the last "
22262225
"element of the path to operate on is a symbolic link, the function will "
22272226
"operate on the symbolic link itself rather than the file pointed to by the "
2228-
"link. (For POSIX systems, Python will call the ``l...`` variant of the "
2229-
"function.)"
2227+
"link. For POSIX systems, Python will call the ``l...`` variant of the "
2228+
"function."
22302229
msgstr ""
22312230

22322231
#: ../../library/os.rst:2044

0 commit comments

Comments
 (0)