@@ -1303,7 +1303,7 @@ msgid ""
13031303"identity to hold, and then compilers that truncate ``i // j`` need to make "
13041304"``i % j`` have the same sign as ``i``."
13051305msgstr ""
1306- "那麼整數除法必須回傳底數。 C 還要求保留該身份 ,然後截斷 ``i // j`` 的編譯器需"
1306+ "那麼整數除法必須回傳底數。 C 還要求保留該識別性 ,然後截斷 ``i // j`` 的編譯器需"
13071307"要使 ``i % j`` 具有與 ``i`` 相同的符號。"
13081308
13091309#: ../../faq/programming.rst:840
@@ -2813,15 +2813,15 @@ msgstr ""
28132813#: ../../faq/programming.rst:1829
28142814#, fuzzy
28152815msgid "When can I rely on identity tests with the *is* operator?"
2816- msgstr "我什麼時候可以依靠 *is* 運算子進行身份測試 ?"
2816+ msgstr "我什麼時候可以依靠 *is* 運算子進行識別性測試 ?"
28172817
28182818#: ../../faq/programming.rst:1831
28192819#, fuzzy
28202820msgid ""
28212821"The ``is`` operator tests for object identity. The test ``a is b`` is "
28222822"equivalent to ``id(a) == id(b)``."
28232823msgstr ""
2824- "``is`` 運算子測試物件身份 。測試 ``a is b`` 等同於 ``id(a) == id(b)`` 。"
2824+ "``is`` 運算子測試物件識別性 。測試 ``a is b`` 等同於 ``id(a) == id(b)`` 。"
28252825
28262826#: ../../faq/programming.rst:1834
28272827#, fuzzy
@@ -2831,8 +2831,8 @@ msgid ""
28312831"usually faster than equality tests. And unlike equality tests, identity "
28322832"tests are guaranteed to return a boolean ``True`` or ``False``."
28332833msgstr ""
2834- "同一性測試最重要的屬性是物件始終與自身相同 , ``a is a`` 總是回傳 ``True`` 。"
2835- "同一性測試通常比相等性測試更快 。與相等性測試不同,身份測試保證回傳布林值 "
2834+ "識別性測試最重要的屬性是物件始終與自身相同 , ``a is a`` 總是回傳 ``True`` 。"
2835+ "識別性測試通常比相等性測試更快 。與相等性測試不同,識別性測試保證回傳布林值 "
28362836"``True`` 或 ``False`` 。"
28372837
28382838#: ../../faq/programming.rst:1839
@@ -2842,16 +2842,16 @@ msgid ""
28422842"object identity is assured. Generally, there are three circumstances where "
28432843"identity is guaranteed:"
28442844msgstr ""
2845- "然而,當物件身份得到保證時,身份測試 \\ *只能*\\ 代替相等性測試。一般來說,保"
2846- "證身份的情況有以下三種 :"
2845+ "然而,當物件識別性得到保證時,識別性測試 \\ *只能*\\ 代替相等性測試。一般來說,保"
2846+ "證識別性的情況有以下三種 :"
28472847
28482848#: ../../faq/programming.rst:1843
28492849#, fuzzy
28502850msgid ""
28512851"1) Assignments create new names but do not change object identity. After "
28522852"the assignment ``new = old``, it is guaranteed that ``new is old``."
28532853msgstr ""
2854- "1) 賦值建立新名稱但不改變物件標識 。賦值``new = old``後,保證``new is old``。"
2854+ "1) 賦值建立新名稱但不改變物件識別性 。賦值``new = old``後,保證``new is old``。"
28552855
28562856#: ../../faq/programming.rst:1846
28572857#, fuzzy
@@ -2860,7 +2860,7 @@ msgid ""
28602860"change object identity. After the list assignment ``s[0] = x``, it is "
28612861"guaranteed that ``s[0] is x``."
28622862msgstr ""
2863- "2) 將物件放入存儲物件引用的容器中不會改變物件身份 。在list賦值 ``s[0] = x`` 之"
2863+ "2) 將物件放入存儲物件引用的容器中不會改變物件識別性 。在list賦值 ``s[0] = x`` 之"
28642864"後,保證 ``s[0] 是 x``。"
28652865
28662866#: ../../faq/programming.rst:1850
@@ -2881,7 +2881,7 @@ msgid ""
28812881"check constants such as :class:`int` and :class:`str` which aren't "
28822882"guaranteed to be singletons::"
28832883msgstr ""
2884- "在大多數其他情況下,身份測試是不可取的 ,平等測試是首選。特別是,身份測試不應 "
2884+ "在大多數其他情況下,識別性測試是不可取的 ,平等測試是首選。特別是,識別性測試不應 "
28852885"用於檢查常數,例如 :class:`int` 和 :class:`str` 不能保證是單例:\n"
28862886"\n"
28872887"::"
@@ -2899,7 +2899,7 @@ msgstr ""
28992899msgid ""
29002900"In the standard library code, you will see several common patterns for "
29012901"correctly using identity tests:"
2902- msgstr "在標準函式庫程式碼中,你將看到幾種正確使用身份測試的常見模式 :"
2902+ msgstr "在標準函式庫程式碼中,你將看到幾種正確使用識別性測試的常見模式 :"
29032903
29042904#: ../../faq/programming.rst:1881
29052905#, fuzzy
@@ -2909,7 +2909,7 @@ msgid ""
29092909"confusion with other objects that may have boolean values that evaluate to "
29102910"false."
29112911msgstr ""
2912- "1) 正如 :pep:`8` 所推薦的,身份測試是檢查 ``None`` 的首選方法。這在程式碼中讀"
2912+ "1) 正如 :pep:`8` 所推薦的,識別性測試是檢查 ``None`` 的首選方法。這在程式碼中讀"
29132913"起來像簡單的英語,並避免與其他可能具有評估為 false 的布林值的物件混淆。"
29142914
29152915#: ../../faq/programming.rst:1885
@@ -2933,7 +2933,7 @@ msgid ""
29332933"identity tests. This prevents the code from being confused by objects such "
29342934"as ``float('NaN')`` that are not equal to themselves."
29352935msgstr ""
2936- "3) 容器實作有時需要透過身份測試來增強相等性測試 。這可以防止程式碼被諸如 "
2936+ "3) 容器實作有時需要透過識別性測試來增強相等性測試 。這可以防止程式碼被諸如 "
29372937"float('NaN') 之類的不等於自身的物件所混淆。"
29382938
29392939#: ../../faq/programming.rst:1905
@@ -3403,7 +3403,7 @@ msgid ""
34033403"The nature of the problem is made clear if you print out the \" identity\" of "
34043404"the class objects::"
34053405msgstr ""
3406- "如果印出出類別物件的「身份 」,問題的本質就很清楚了:\n"
3406+ "如果印出出類別物件的「識別性 」,問題的本質就很清楚了:\n"
34073407"\n"
34083408"::"
34093409
0 commit comments