@@ -519,7 +519,7 @@ msgstr ""
519
519
520
520
#: ../../howto/descriptor.rst:267
521
521
msgid "The new class now logs access to both *name* and *age*:"
522
- msgstr ""
522
+ msgstr "新類別現在記錄對 *name* 和 *age* 的存取: "
523
523
524
524
#: ../../howto/descriptor.rst:275
525
525
msgid ""
@@ -539,7 +539,7 @@ msgstr ""
539
539
540
540
#: ../../howto/descriptor.rst:284
541
541
msgid "The two *Person* instances contain only the private names:"
542
- msgstr ""
542
+ msgstr "兩個 *Person* 實例只包含私有名稱: "
543
543
544
544
#: ../../howto/descriptor.rst:286
545
545
msgid ""
@@ -1012,7 +1012,7 @@ msgstr ""
1012
1012
1013
1013
#: ../../howto/descriptor.rst:573
1014
1014
msgid "Invocation from an instance"
1015
- msgstr ""
1015
+ msgstr "從實例呼叫 "
1016
1016
1017
1017
#: ../../howto/descriptor.rst:575
1018
1018
msgid ""
@@ -1021,18 +1021,22 @@ msgid ""
1021
1021
"descriptors, then class variables, and lastly :meth:`~object.__getattr__` if "
1022
1022
"it is provided."
1023
1023
msgstr ""
1024
+ "實例查找掃描命名空間鏈,給予資料描述器最高優先權,接著是實例變數,然後是非資料描述器,"
1025
+ "再來是類別變數,最後如果有提供的話是 :meth:`~object.__getattr__`。"
1024
1026
1025
1027
#: ../../howto/descriptor.rst:580
1026
1028
msgid ""
1027
1029
"If a descriptor is found for ``a.x``, then it is invoked with: "
1028
1030
"``desc.__get__(a, type(a))``."
1029
1031
msgstr ""
1032
+ "如果為 ``a.x`` 找到描述器,則使用 ``desc.__get__(a, type(a))`` 呼叫它。"
1030
1033
1031
1034
#: ../../howto/descriptor.rst:583
1032
1035
msgid ""
1033
1036
"The logic for a dotted lookup is in :meth:`object.__getattribute__`. Here "
1034
1037
"is a pure Python equivalent:"
1035
1038
msgstr ""
1039
+ "點查找的邏輯在 :meth:`object.__getattribute__` 中。這裡是純 Python 等價實作:"
1036
1040
1037
1041
#: ../../howto/descriptor.rst:586
1038
1042
msgid ""
@@ -1102,7 +1106,7 @@ msgstr ""
1102
1106
1103
1107
#: ../../howto/descriptor.rst:776
1104
1108
msgid "Invocation from a class"
1105
- msgstr ""
1109
+ msgstr "從類別呼叫 "
1106
1110
1107
1111
#: ../../howto/descriptor.rst:778
1108
1112
msgid ""
@@ -1114,7 +1118,7 @@ msgstr ""
1114
1118
1115
1119
#: ../../howto/descriptor.rst:783
1116
1120
msgid "If a descriptor is found, it is invoked with ``desc.__get__(None, A)``."
1117
- msgstr ""
1121
+ msgstr "如果找到描述器,則使用 ``desc.__get__(None, A)`` 呼叫它。 "
1118
1122
1119
1123
#: ../../howto/descriptor.rst:785
1120
1124
msgid ""
0 commit comments