@@ -1303,7 +1303,7 @@ msgid ""
1303
1303
"identity to hold, and then compilers that truncate ``i // j`` need to make "
1304
1304
"``i % j`` have the same sign as ``i``."
1305
1305
msgstr ""
1306
- "那麼整數除法必須回傳底數。 C 還要求保留該身份 ,然後截斷 ``i // j`` 的編譯器需"
1306
+ "那麼整數除法必須回傳底數。 C 還要求保留該識別性 ,然後截斷 ``i // j`` 的編譯器需"
1307
1307
"要使 ``i % j`` 具有與 ``i`` 相同的符號。"
1308
1308
1309
1309
#: ../../faq/programming.rst:840
@@ -2813,15 +2813,15 @@ msgstr ""
2813
2813
#: ../../faq/programming.rst:1829
2814
2814
#, fuzzy
2815
2815
msgid "When can I rely on identity tests with the *is* operator?"
2816
- msgstr "我什麼時候可以依靠 *is*運算子進行身份測試 ?"
2816
+ msgstr "我什麼時候可以依靠 *is*運算子進行識別性測試 ?"
2817
2817
2818
2818
#: ../../faq/programming.rst:1831
2819
2819
#, fuzzy
2820
2820
msgid ""
2821
2821
"The ``is`` operator tests for object identity. The test ``a is b`` is "
2822
2822
"equivalent to ``id(a) == id(b)``."
2823
2823
msgstr ""
2824
- "``is``運算子測試物件身份 。測試 ``a is b`` 等同於 ``id(a) == id(b)`` 。"
2824
+ "``is``運算子測試物件識別性 。測試 ``a is b`` 等同於 ``id(a) == id(b)`` 。"
2825
2825
2826
2826
#: ../../faq/programming.rst:1834
2827
2827
#, fuzzy
@@ -2831,8 +2831,8 @@ msgid ""
2831
2831
"usually faster than equality tests. And unlike equality tests, identity "
2832
2832
"tests are guaranteed to return a boolean ``True`` or ``False``."
2833
2833
msgstr ""
2834
- "同一性測試最重要的屬性是物件始終與自身相同 , ``a is a`` 總是回傳 ``True`` 。"
2835
- "同一性測試通常比相等性測試更快 。與相等性測試不同,身份測試保證回傳布林值 "
2834
+ "識別性測試最重要的屬性是物件始終與自身相同 , ``a is a`` 總是回傳 ``True`` 。"
2835
+ "識別性測試通常比相等性測試更快 。與相等性測試不同,識別性測試保證回傳布林值 "
2836
2836
"``True`` 或 ``False`` 。"
2837
2837
2838
2838
#: ../../faq/programming.rst:1839
@@ -2842,16 +2842,16 @@ msgid ""
2842
2842
"object identity is assured. Generally, there are three circumstances where "
2843
2843
"identity is guaranteed:"
2844
2844
msgstr ""
2845
- "然而,當物件身份得到保證時,身份測試 \\ *只能*\\ 代替相等性測試。一般來說,保"
2846
- "證身份的情況有以下三種 :"
2845
+ "然而,當物件識別性得到保證時,識別性測試 \\ *只能*\\ 代替相等性測試。一般來說,保"
2846
+ "證識別性的情況有以下三種 :"
2847
2847
2848
2848
#: ../../faq/programming.rst:1843
2849
2849
#, fuzzy
2850
2850
msgid ""
2851
2851
"1) Assignments create new names but do not change object identity. After "
2852
2852
"the assignment ``new = old``, it is guaranteed that ``new is old``."
2853
2853
msgstr ""
2854
- "1)賦值建立新名稱但不改變物件標識 。賦值``new = old``後,保證``new is old``。"
2854
+ "1)賦值建立新名稱但不改變物件識別性 。賦值``new = old``後,保證``new is old``。"
2855
2855
2856
2856
#: ../../faq/programming.rst:1846
2857
2857
#, fuzzy
@@ -2860,7 +2860,7 @@ msgid ""
2860
2860
"change object identity. After the list assignment ``s[0] = x``, it is "
2861
2861
"guaranteed that ``s[0] is x``."
2862
2862
msgstr ""
2863
- "2)將物件放入存儲物件引用的容器中不會改變物件身份 。在list賦值 ``s[0] = x`` 之"
2863
+ "2)將物件放入存儲物件引用的容器中不會改變物件識別性 。在list賦值 ``s[0] = x`` 之"
2864
2864
"後,保證 ``s[0] 是 x``。"
2865
2865
2866
2866
#: ../../faq/programming.rst:1850
@@ -2881,7 +2881,7 @@ msgid ""
2881
2881
"check constants such as :class:`int` and :class:`str` which aren't "
2882
2882
"guaranteed to be singletons::"
2883
2883
msgstr ""
2884
- "在大多數其他情況下,身份測試是不可取的 ,平等測試是首選。特別是,身份測試不應 "
2884
+ "在大多數其他情況下,識別性測試是不可取的 ,平等測試是首選。特別是,識別性測試不應 "
2885
2885
"用於檢查常數,例如 :class:`int` 和 :class:`str` 不能保證是單例:\n"
2886
2886
"\n"
2887
2887
"::"
@@ -2899,7 +2899,7 @@ msgstr ""
2899
2899
msgid ""
2900
2900
"In the standard library code, you will see several common patterns for "
2901
2901
"correctly using identity tests:"
2902
- msgstr "在標準函式庫程式碼中,你將看到幾種正確使用身份測試的常見模式 :"
2902
+ msgstr "在標準函式庫程式碼中,你將看到幾種正確使用識別性測試的常見模式 :"
2903
2903
2904
2904
#: ../../faq/programming.rst:1881
2905
2905
#, fuzzy
@@ -2909,7 +2909,7 @@ msgid ""
2909
2909
"confusion with other objects that may have boolean values that evaluate to "
2910
2910
"false."
2911
2911
msgstr ""
2912
- "1) 正如 :pep:`8` 所推薦的,身份測試是檢查 ``None`` 的首選方法。這在程式碼中讀"
2912
+ "1) 正如 :pep:`8` 所推薦的,識別性測試是檢查 ``None`` 的首選方法。這在程式碼中讀"
2913
2913
"起來像簡單的英語,並避免與其他可能具有評估為 false 的布林值的物件混淆。"
2914
2914
2915
2915
#: ../../faq/programming.rst:1885
@@ -2933,7 +2933,7 @@ msgid ""
2933
2933
"identity tests. This prevents the code from being confused by objects such "
2934
2934
"as ``float('NaN')`` that are not equal to themselves."
2935
2935
msgstr ""
2936
- "3)容器實作有時需要透過身份測試來增強相等性測試 。這可以防止程式碼被諸如 "
2936
+ "3)容器實作有時需要透過識別性測試來增強相等性測試 。這可以防止程式碼被諸如 "
2937
2937
"float('NaN') 之類的不等於自身的物件所混淆。"
2938
2938
2939
2939
#: ../../faq/programming.rst:1905
@@ -3403,7 +3403,7 @@ msgid ""
3403
3403
"The nature of the problem is made clear if you print out the\" identity\" of "
3404
3404
"the class objects::"
3405
3405
msgstr ""
3406
- "如果印出出類別物件的「身份 」,問題的本質就很清楚了:\n"
3406
+ "如果印出出類別物件的「識別性 」,問題的本質就很清楚了:\n"
3407
3407
"\n"
3408
3408
"::"
3409
3409