11111212# Siyuan Xu <[email protected] >, 20191313# ppcfish <[email protected] >, 201914- # WH-2099 <[email protected] >, 20201514# Freesand Leo <[email protected] >, 202015+ # WH-2099 <[email protected] >, 20201616#
1717#, fuzzy
1818msgid ""
@@ -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
176176msgid "Invoking Descriptors"
177- msgstr "发起调用描述器 "
177+ msgstr "调用描述器 "
178178
179179#: ../../howto/descriptor.rst:81
180180msgid ""
@@ -262,13 +262,19 @@ msgid ""
262262" unchanged. If not in the dictionary, ``m`` reverts to a search using "
263263":meth:`object.__getattribute__`."
264264msgstr ""
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
267271msgid ""
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`_."
271275msgstr ""
276+ "这个实现的具体细节在 :source:`Objects/typeobject.c`. 的 :c:func:`super_getattro()` "
277+ "中,并且你还可以在 `Guido's Tutorial`_ 中找到等价的纯Python实现。"
272278
273279#: ../../howto/descriptor.rst:132
274280msgid ""
0 commit comments