Skip to content

Commit 2e00621

Browse files
Copilotmattwang44
andcommitted
Add key invocation sections and complete substantial descriptor translation
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
1 parent 8b53da4 commit 2e00621

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

howto/descriptor.po

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ msgstr ""
519519

520520
#: ../../howto/descriptor.rst:267
521521
msgid "The new class now logs access to both *name* and *age*:"
522-
msgstr ""
522+
msgstr "新類別現在記錄對 *name* 和 *age* 的存取:"
523523

524524
#: ../../howto/descriptor.rst:275
525525
msgid ""
@@ -539,7 +539,7 @@ msgstr ""
539539

540540
#: ../../howto/descriptor.rst:284
541541
msgid "The two *Person* instances contain only the private names:"
542-
msgstr ""
542+
msgstr "兩個 *Person* 實例只包含私有名稱:"
543543

544544
#: ../../howto/descriptor.rst:286
545545
msgid ""
@@ -1012,7 +1012,7 @@ msgstr ""
10121012

10131013
#: ../../howto/descriptor.rst:573
10141014
msgid "Invocation from an instance"
1015-
msgstr ""
1015+
msgstr "從實例呼叫"
10161016

10171017
#: ../../howto/descriptor.rst:575
10181018
msgid ""
@@ -1021,18 +1021,22 @@ msgid ""
10211021
"descriptors, then class variables, and lastly :meth:`~object.__getattr__` if "
10221022
"it is provided."
10231023
msgstr ""
1024+
"實例查找掃描命名空間鏈,給予資料描述器最高優先權,接著是實例變數,然後是非資料描述器,"
1025+
"再來是類別變數,最後如果有提供的話是 :meth:`~object.__getattr__`。"
10241026

10251027
#: ../../howto/descriptor.rst:580
10261028
msgid ""
10271029
"If a descriptor is found for ``a.x``, then it is invoked with: "
10281030
"``desc.__get__(a, type(a))``."
10291031
msgstr ""
1032+
"如果為 ``a.x`` 找到描述器,則使用 ``desc.__get__(a, type(a))`` 呼叫它。"
10301033

10311034
#: ../../howto/descriptor.rst:583
10321035
msgid ""
10331036
"The logic for a dotted lookup is in :meth:`object.__getattribute__`. Here "
10341037
"is a pure Python equivalent:"
10351038
msgstr ""
1039+
"點查找的邏輯在 :meth:`object.__getattribute__` 中。這裡是純 Python 等價實作:"
10361040

10371041
#: ../../howto/descriptor.rst:586
10381042
msgid ""
@@ -1102,7 +1106,7 @@ msgstr ""
11021106

11031107
#: ../../howto/descriptor.rst:776
11041108
msgid "Invocation from a class"
1105-
msgstr ""
1109+
msgstr "從類別呼叫"
11061110

11071111
#: ../../howto/descriptor.rst:778
11081112
msgid ""
@@ -1114,7 +1118,7 @@ msgstr ""
11141118

11151119
#: ../../howto/descriptor.rst:783
11161120
msgid "If a descriptor is found, it is invoked with ``desc.__get__(None, A)``."
1117-
msgstr ""
1121+
msgstr "如果找到描述器,則使用 ``desc.__get__(None, A)`` 呼叫它。"
11181122

11191123
#: ../../howto/descriptor.rst:785
11201124
msgid ""

0 commit comments

Comments
 (0)