Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: RockLeon <[email protected]>
  • Loading branch information
ken71301 and rockleona committed May 8, 2024
1 parent ee4c841 commit 818749f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/weakref.po
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ msgid ""
"call will raise :exc:`TypeError`."
msgstr ""
"如果 *object* 是可雜湊的,那麼弱參照就是 :term:`hashable`。即使在 *object* 被"
"刪除後,它們仍將保留其雜湊值。如果僅在 *object* 刪除後 :func:`hash` 才第一次"
"被呼叫,則該呼叫將引發 :exc:`TypeError`。"
"刪除後,它們仍將保留其雜湊值。如果僅在 *object* 刪除後才第一次"
"呼叫 :func:`hash`,則該呼叫將引發 :exc:`TypeError`。"

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

Expand Down Expand Up @@ -319,7 +319,7 @@ msgstr ""

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

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

0 comments on commit 818749f

Please sign in to comment.