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

Commita4aed8b

Browse files
committed
fix: Apply suggestions from code review
1 parent2f72c9f commita4aed8b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎library/weakref.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
1010
"POT-Creation-Date:2023-10-11 17:13+0000\n"
11-
"PO-Revision-Date:2024-03-26 21:42+0800\n"
11+
"PO-Revision-Date:2024-05-08 22:24+0800\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
@@ -135,8 +135,8 @@ msgid ""
135135
msgstr""
136136
"並非所有物件都可以被弱參照。支援弱參照的物件包括類別實例、用 Python (但不是"
137137
"C)編寫的函式、實例方法、集合、凍結集合 (frozenset)、一些\\ :term:`檔案物件 "
138-
"<file object>`、:term:`產生器 <generator>`、類型物件、socket、陣列、"
139-
"向佇列、正規表示式模式物件和程式碼物件。"
138+
"<file object>`、:term:`產生器 <generator>`、類型物件、socket、陣列、雙向佇"
139+
"、正規表示式模式物件和程式碼物件。"
140140

141141
#:../../library/weakref.rst:74
142142
msgid"Added support for thread.lock, threading.Lock, and code objects."
@@ -219,8 +219,8 @@ msgid ""
219219
"`hash` is called the first time only after the *object* was deleted, the "
220220
"call will raise :exc:`TypeError`."
221221
msgstr""
222-
"如果 *object* 是\\ :term:`可雜湊的 <hashable>`,那麼弱參照就是可雜湊的。即使在 *object* 被"
223-
"刪除後,它們仍將保留其雜湊值。如果僅在 *object* 刪除後才第一次"
222+
"如果 *object* 是\\ :term:`可雜湊的 <hashable>`,那麼弱參照就是可雜湊的。即使"
223+
"在 *object* 被刪除後,它們仍將保留其雜湊值。如果僅在 *object* 刪除後才第一次"
224224
"呼叫 :func:`hash`,則該呼叫將引發 :exc:`TypeError`。"
225225

226226
#:../../library/weakref.rst:121
@@ -267,9 +267,9 @@ msgstr ""
267267
"傳回一個使用弱參照的 *object* 的代理 (proxy)。這支援在大多數情境中使用代理,"
268268
"而不需要對弱參照物件明確地取消參照。回傳的物件將具有 ``ProxyType`` 或 "
269269
"``CallableProxyType`` 型別,具體取決於 *object* 是否為可呼叫物件。無論參照目"
270-
"標如何,代理物件都不是 :term:`hashable`;這避免了與其基本可變物件本質相關的許多"
271-
"問題,並阻止它們作為字典的鍵被使用。*callback* 與 :func:`ref`函式的同名參數"
272-
"是相同的。"
270+
"標如何,代理物件都不是 :term:`hashable`;這避免了與其基本可變物件本質相關的許"
271+
"多問題,並阻止它們作為字典的鍵被使用。*callback* 與 :func:`ref`函式的同名參"
272+
"數是相同的。"
273273

274274
#:../../library/weakref.rst:149
275275
msgid""
@@ -382,7 +382,7 @@ msgid ""
382382
"method until either the object or the original function dies::"
383383
msgstr""
384384
"一個特製的 :class:`ref` 子類別,其模擬對繫結方法 (bound method) (即在類別上"
385-
"定義並在實例上查找的方法)的弱參照。由於繫結函式是短暫存在的,因此標準弱參照"
385+
"定義並在實例上查找的方法)的弱參照。由於繫結方法是短暫存在的,因此標準弱參照"
386386
"無法保留它。:class:`WeakMethod` 有特殊的程式碼來重新建立繫結函式,直到物件或"
387387
"原始函式死亡: ::"
388388

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp