@@ -8,7 +8,7 @@ msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2023-10-11 17:13+0000\n "
11
- "PO-Revision-Date : 2024-05-08 22:24 +0800\n "
11
+ "PO-Revision-Date : 2024-05-14 21:09 +0800\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
@@ -17,7 +17,7 @@ msgstr ""
17
17
"Content-Type : text/plain; charset=UTF-8\n "
18
18
"Content-Transfer-Encoding : 8bit\n "
19
19
"Plural-Forms : nplurals=1; plural=0;\n "
20
- "X-Generator : Poedit 3.4.1 \n "
20
+ "X-Generator : Poedit 3.4.4 \n "
21
21
22
22
#: ../../library/weakref.rst:4
23
23
msgid ":mod:`weakref` --- Weak references"
@@ -112,7 +112,7 @@ msgid ""
112
112
msgstr ""
113
113
":class:`finalize` 提供了一種直接的方法來註冊在物件被垃圾回收時呼叫的清理函"
114
114
"式。這比在原始弱參照上設定回呼函式更容易使用,因為模組在物件被收集前會自動確"
115
- "保終結函式 (finalizer) 保持存活。"
115
+ "保最終化函式 (finalizer) 保持存活。"
116
116
117
117
#: ../../library/weakref.rst:63
118
118
msgid ""
@@ -191,8 +191,8 @@ msgstr ""
191
191
"傳回對 *object* 的弱參照。如果參照目標仍存活,則可以透過呼叫參照物件來取回原"
192
192
"始物件;如果參照目標已不存活,呼叫參照物件將導致 :const:`None` 被回傳。如果 "
193
193
"*callback* 被提供而非 :const:`None`,且回傳的弱參照物件仍存活,那麼當物件即將"
194
- "被終結 (finalize) 時,回呼將被呼叫;弱參照物件將作為唯一的參數傳遞給回呼;參 "
195
- "照物件將不再可用 。"
194
+ "被最終化 (finalize) 時,回呼將被呼叫;弱參照物件將作為唯一的參數傳遞給回呼;"
195
+ "參照物件將不再可用 。"
196
196
197
197
#: ../../library/weakref.rst:108
198
198
msgid ""
@@ -399,6 +399,9 @@ msgid ""
399
399
"always survive until the reference object is collected, greatly simplifying "
400
400
"lifecycle management."
401
401
msgstr ""
402
+ "傳回可呼叫的最終化函式物件,此物件在 *obj* 被垃圾回收時會被呼叫。與一般的弱參"
403
+ "照不同,最終化函式將始終存在,直到參照物件被回收為止,從而大大簡化了生命週期"
404
+ "管理。"
402
405
403
406
#: ../../library/weakref.rst:275
404
407
msgid ""
@@ -407,6 +410,9 @@ msgid ""
407
410
"finalizer returns the result of evaluating ``func(*arg, **kwargs)``, whereas "
408
411
"calling a dead finalizer returns :const:`None`."
409
412
msgstr ""
413
+ "最終化函式在被呼叫(明確呼叫或在垃圾收集時)之前被視為\\ *存活*,之後它就會"
414
+ "\\ *死亡*。呼叫存活的最終化函式會回傳 ``func(*arg, **kwargs)`` 的計算結果,而"
415
+ "呼叫死亡的最終化函式會回傳 :const:`None`。"
410
416
411
417
#: ../../library/weakref.rst:280
412
418
msgid ""
@@ -415,49 +421,64 @@ msgid ""
415
421
"handled in the same way as exceptions raised from an object's :meth:`~object."
416
422
"__del__` method or a weak reference's callback."
417
423
msgstr ""
424
+ "垃圾回收期間最終化函式回呼引發的例外會在標準錯誤輸出中顯示,但無法傳播。它們"
425
+ "的處理方式與從物件的 :meth:`~object.__del__` 方法或弱參照的回呼引發的例外相"
426
+ "同。"
418
427
419
428
#: ../../library/weakref.rst:286
420
429
msgid ""
421
430
"When the program exits, each remaining live finalizer is called unless its :"
422
431
"attr:`atexit` attribute has been set to false. They are called in reverse "
423
432
"order of creation."
424
433
msgstr ""
434
+ "當程式退出時,除非該最終化函式的 :attr:`atexit` 屬性已被設定為 false,否則每"
435
+ "個存活的最終化函式會被呼叫。它們以與建立相反的順序被呼叫。"
425
436
426
437
#: ../../library/weakref.rst:290
427
438
msgid ""
428
439
"A finalizer will never invoke its callback during the later part of the :"
429
440
"term:`interpreter shutdown` when module globals are liable to have been "
430
441
"replaced by :const:`None`."
431
442
msgstr ""
443
+ "當模組的 globals 可能被 :const:`None` 取代時,最終化函式永遠不會在 :term:"
444
+ "`interpreter shutdown` 的後期調用(invoke)其回呼。"
432
445
433
446
#: ../../library/weakref.rst:296
434
447
msgid ""
435
448
"If *self* is alive then mark it as dead and return the result of calling "
436
449
"``func(*args, **kwargs)``. If *self* is dead then return :const:`None`."
437
450
msgstr ""
451
+ "如果 *self* 仍存活,則將其標記為死亡並回傳呼叫 ``func(*args, **kwargs)`` 的結"
452
+ "果。如果 *self* 已死亡,則回傳 :const:`None`。"
438
453
439
454
#: ../../library/weakref.rst:302
440
455
msgid ""
441
456
"If *self* is alive then mark it as dead and return the tuple ``(obj, func, "
442
457
"args, kwargs)``. If *self* is dead then return :const:`None`."
443
458
msgstr ""
459
+ "如果 *self* 仍存活,則將其標記為死亡並回傳元組 ``(obj, func, args, "
460
+ "kwargs)``。如果 *self* 已死亡,則回傳 :const:`None`。"
444
461
445
462
#: ../../library/weakref.rst:308
446
463
msgid ""
447
464
"If *self* is alive then return the tuple ``(obj, func, args, kwargs)``. If "
448
465
"*self* is dead then return :const:`None`."
449
466
msgstr ""
467
+ "如果 *self* 仍存活,則回傳元組 ``(obj, func, args, kwargs)``。如果 *self* 已"
468
+ "死亡,則回傳 :const:`None`。"
450
469
451
470
#: ../../library/weakref.rst:313
452
471
msgid "Property which is true if the finalizer is alive, false otherwise."
453
- msgstr ""
472
+ msgstr "如果最終化函式仍存活,則屬性為 true,否則為 false。 "
454
473
455
474
#: ../../library/weakref.rst:317
456
475
msgid ""
457
476
"A writable boolean property which by default is true. When the program "
458
477
"exits, it calls all remaining live finalizers for which :attr:`.atexit` is "
459
478
"true. They are called in reverse order of creation."
460
479
msgstr ""
480
+ "一個可寫的布林屬性,預設為 true。當程式退出時,它會呼叫 :attr:`.atexit` 為 "
481
+ "true 的所有剩餘且仍存活的最終化函式。它們以與建立相反的順序被呼叫。"
461
482
462
483
#: ../../library/weakref.rst:324
463
484
msgid ""
@@ -466,35 +487,39 @@ msgid ""
466
487
"will never be garbage collected. In particular, *func* should not be a "
467
488
"bound method of *obj*."
468
489
msgstr ""
490
+ "確保 *func*、*args* 和 *kwargs* 不直接或間接擁有對 *obj* 的任何參照非常重要,"
491
+ "否則 *obj* 將永遠不會被垃圾回收。尤其 *func* 不應該是 *obj* 的繫結方法。"
469
492
470
493
#: ../../library/weakref.rst:334
471
494
msgid "The type object for weak references objects."
472
- msgstr ""
495
+ msgstr "弱參照物件的型別物件。 "
473
496
474
497
#: ../../library/weakref.rst:339
475
498
msgid "The type object for proxies of objects which are not callable."
476
- msgstr ""
499
+ msgstr "非可呼叫物件的代理的型別物件。 "
477
500
478
501
#: ../../library/weakref.rst:344
479
502
msgid "The type object for proxies of callable objects."
480
- msgstr ""
503
+ msgstr "可呼叫物件的代理的型別物件。 "
481
504
482
505
#: ../../library/weakref.rst:349
483
506
msgid ""
484
507
"Sequence containing all the type objects for proxies. This can make it "
485
508
"simpler to test if an object is a proxy without being dependent on naming "
486
509
"both proxy types."
487
510
msgstr ""
511
+ "包含代理的所有型別物件的序列。這可以讓測試物件是否為代理變得更簡單,而無需依"
512
+ "賴命名兩種代理型別。"
488
513
489
514
#: ../../library/weakref.rst:356
490
515
msgid ":pep:`205` - Weak References"
491
- msgstr ""
516
+ msgstr ":pep:`205` - 弱參照 "
492
517
493
518
#: ../../library/weakref.rst:357
494
519
msgid ""
495
520
"The proposal and rationale for this feature, including links to earlier "
496
521
"implementations and information about similar features in other languages."
497
- msgstr ""
522
+ msgstr "此功能的提案和理由,包括早期實作的連結以及其他語言中類似功能的資訊。 "
498
523
499
524
#: ../../library/weakref.rst:364
500
525
msgid "Weak Reference Objects"
0 commit comments