Skip to content

Commit 466d7ac

Browse files
ken71301rockleona
andcommitted
Apply suggestions from code review
Co-authored-by: RockLeon <[email protected]>
1 parent bf30460 commit 466d7ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/weakref.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ msgid ""
220220
"call will raise :exc:`TypeError`."
221221
msgstr ""
222222
"如果 *object* 是可雜湊的,那麼弱參照就是 :term:`hashable`。即使在 *object* 被"
223-
"刪除後,它們仍將保留其雜湊值。如果僅在 *object* 刪除後 :func:`hash` 才第一次"
224-
"被呼叫,則該呼叫將引發 :exc:`TypeError`。"
223+
"刪除後,它們仍將保留其雜湊值。如果僅在 *object* 刪除後才第一次"
224+
"呼叫 :func:`hash`,則該呼叫將引發 :exc:`TypeError`。"
225225

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

@@ -319,7 +319,7 @@ msgstr ""
319319

320320
#: ../../library/weakref.rst:188
321321
msgid "A workaround would be to remove the key prior to reassignment::"
322-
msgstr "解決方法是在重新賦值 (reassignment) 之前刪除鍵: ::"
322+
msgstr "一個變通的解法是在重新賦值 (reassignment) 之前刪除鍵: ::"
323323

324324
#: ../../library/weakref.rst:199
325325
msgid "Added support for ``|`` and ``|=`` operators, specified in :pep:`584`."

0 commit comments

Comments
 (0)