Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Payon <ken71301@hotmail.com>
  • Loading branch information
an-777 and ken71301 committed Apr 13, 2024
1 parent debf960 commit c9ce39d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions faq/programming.po
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ msgid ""
"identity to hold, and then compilers that truncate ``i // j`` need to make "
"``i % j`` have the same sign as ``i``."
msgstr ""
"那麼整數除法必須回傳底數。 C 還要求保留​​該識別性,然後截斷 ``i // j`` 的編譯器需"
"那麼整數除法必須回傳向下取整的結果。 C 還要求保留​​該識別性,然後截斷 ``i // j`` 的編譯器需"
"要使 ``i % j`` 具有與 ``i`` 相同的符號。"

#: ../../faq/programming.rst:840
Expand Down Expand Up @@ -2837,7 +2837,7 @@ msgid ""
"object identity is assured. Generally, there are three circumstances where "
"identity is guaranteed:"
msgstr ""
"然而,當物件識別性得到保證時,識別性測試\\ *只能*\\ 代替相等性測試。一般來說,保"
"然而,\\* 只有\\* 當物件識別性得到保證時,識別性測試才能代替相等性測試。一般來說,保"
"證識別性的情況有以下三種:"

#: ../../faq/programming.rst:1843
Expand All @@ -2853,7 +2853,7 @@ msgid ""
"change object identity. After the list assignment ``s[0] = x``, it is "
"guaranteed that ``s[0] is x``."
msgstr ""
"2) 將物件放入存儲物件引用的容器中不會改變物件識別性。在list賦值 ``s[0] = x`` 之"
"2) 將物件放入存儲物件參照的容器中不會改變物件識別性。在 list 賦值 ``s[0] = x`` 之"
"後,保證 ``s[0] 是 x``。"

#: ../../faq/programming.rst:1850
Expand All @@ -2874,7 +2874,7 @@ msgid ""
"guaranteed to be singletons::"
msgstr ""
"在大多數其他情況下,識別性測試是不可取的,相等性測試是首選。特別是,識別性測試不應"
"用於檢查常數,例如 :class:`int` 和 :class:`str` 不能保證是單例:\n"
"用於檢查常數,例如不能保證是單例的 :class:`int` 和 :class:`str`:\n"
"\n"
"::"

Expand Down Expand Up @@ -3391,7 +3391,7 @@ msgid ""
"The nature of the problem is made clear if you print out the \"identity\" of "
"the class objects::"
msgstr ""
"如果印出出類別物件的「識別性」,問題的本質就很清楚了:\n"
"如果印出類別物件的「識別性」,問題的本質就很清楚了:\n"
"\n"
"::"

Expand Down

0 comments on commit c9ce39d

Please sign in to comment.