Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67cb6fa

Browse files
committed
[po] auto sync bot
1 parent fda85b1 commit 67cb6fa

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

howto/descriptor.po

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# Junkai Shao <[email protected]>, 2018
1111
# Freesand Leo <[email protected]>, 2018
1212
# banxi <[email protected]>, 2019
13+
# Siyuan Xu <[email protected]>, 2019
1314
#
1415
#, fuzzy
1516
msgid ""
@@ -18,7 +19,7 @@ msgstr ""
1819
"Report-Msgid-Bugs-To: \n"
1920
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
2021
"PO-Revision-Date: 2017-02-16 17:44+0000\n"
21-
"Last-Translator: banxi <banxi1988@gmail.com>, 2019\n"
22+
"Last-Translator: Siyuan Xu <mf20070535@126.com>, 2019\n"
2223
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2324
"MIME-Version: 1.0\n"
2425
"Content-Type: text/plain; charset=UTF-8\n"
@@ -28,7 +29,7 @@ msgstr ""
2829

2930
#: ../../howto/descriptor.rst:3
3031
msgid "Descriptor HowTo Guide"
31-
msgstr ""
32+
msgstr "实现描述器"
3233

3334
#: ../../howto/descriptor.rst:0
3435
msgid "Author"
@@ -68,7 +69,7 @@ msgid ""
6869
"Learning about descriptors not only provides access to a larger toolset, it "
6970
"creates a deeper understanding of how Python works and an appreciation for "
7071
"the elegance of its design."
71-
msgstr ""
72+
msgstr "学习描述器不仅能提供接触到更多工具集的方法,还能更深地理解 Python 工作的原理并更加体会到其设计的优雅性。"
7273

7374
#: ../../howto/descriptor.rst:24
7475
msgid "Definition and Introduction"
@@ -82,6 +83,9 @@ msgid ""
8283
":meth:`__delete__`. If any of those methods are defined for an object, it "
8384
"is said to be a descriptor."
8485
msgstr ""
86+
"一般地,一个描述器是一个包含 “绑定行为” "
87+
"的对象,对其属性的存取被描述器协议中定义的方法覆盖。这些方法有::meth:`__get__`,:meth:`__set__` 和 "
88+
":meth:`__delete__`。如果某个对象中定义了这些方法中的任意一个,那么这个对象就可以被称为一个描述器。"
8589

8690
#: ../../howto/descriptor.rst:32
8791
msgid ""
@@ -94,6 +98,10 @@ msgid ""
9498
"method instead. Where this occurs in the precedence chain depends on which "
9599
"descriptor methods were defined."
96100
msgstr ""
101+
"属性访问的默认行为是从一个对象的字典中获取、设置或删除属性。例如,``a.x`` 的查找顺序会从 ``a.__dict__['x']`` 开始,然后是 "
102+
"``type(a).__dict__['x']``,接下来依次查找 ``type(a)`` 的基类,不包括元类。 "
103+
"如果找到的值是定义了某个描述器方法的对象,则 Python "
104+
"可能会重载默认行为并转而发起调用描述器方法。这具体发生在优先级链的哪个环节则要根据所定义的描述器方法及其被调用的方式来决定。"
97105

98106
#: ../../howto/descriptor.rst:41
99107
msgid ""

0 commit comments

Comments
 (0)