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

Skip to content

Commit 4bcd3d3

Browse files
[po] auto sync
1 parent 041fa69 commit 4bcd3d3

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

howto/descriptor.po

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# banxi <[email protected]>, 2019
1212
# Siyuan Xu <[email protected]>, 2019
1313
# ppcfish <[email protected]>, 2019
14-
# WH-2099 <[email protected]>, 2020
1514
# Freesand Leo <[email protected]>, 2020
15+
# WH-2099 <[email protected]>, 2020
1616
#
1717
#, fuzzy
1818
msgid ""
@@ -21,7 +21,7 @@ msgstr ""
2121
"Report-Msgid-Bugs-To: \n"
2222
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
2323
"PO-Revision-Date: 2017-02-16 17:44+0000\n"
24-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
24+
"Last-Translator: WH-2099 <wh2099@outlook.com>, 2020\n"
2525
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2626
"MIME-Version: 1.0\n"
2727
"Content-Type: text/plain; charset=UTF-8\n"
@@ -174,7 +174,7 @@ msgstr ""
174174

175175
#: ../../howto/descriptor.rst:79
176176
msgid "Invoking Descriptors"
177-
msgstr "发起调用描述器"
177+
msgstr "调用描述器"
178178

179179
#: ../../howto/descriptor.rst:81
180180
msgid ""
@@ -262,13 +262,19 @@ msgid ""
262262
" unchanged. If not in the dictionary, ``m`` reverts to a search using "
263263
":meth:`object.__getattribute__`."
264264
msgstr ""
265+
" ``super()`` 返回的对象还有一个自定义的 :meth:`__getattribute__` 方法来调用描述器。属性查找 ``super(B,"
266+
" obj).m`` 在紧随 ``B`` 后的基类 ``A`` 中搜索 ``obj.__class__.__mro__`` ,然后返回 "
267+
"``A.__dict__['m'].__get__(obj, B)`` 。如果其不是描述符,则直接返回 ``m`` 。如果不在字典中, ``m`` "
268+
"才回退使用 :meth:`object.__getattribute__` 进行搜索。 "
265269

266270
#: ../../howto/descriptor.rst:126
267271
msgid ""
268272
"The implementation details are in :c:func:`super_getattro()` in "
269273
":source:`Objects/typeobject.c`. and a pure Python equivalent can be found "
270274
"in `Guido's Tutorial`_."
271275
msgstr ""
276+
"这个实现的具体细节在 :source:`Objects/typeobject.c`. 的 :c:func:`super_getattro()` "
277+
"中,并且你还可以在 `Guido's Tutorial`_ 中找到等价的纯Python实现。"
272278

273279
#: ../../howto/descriptor.rst:132
274280
msgid ""

0 commit comments

Comments
 (0)