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

Skip to content

Commit 0884a6c

Browse files
[po] auto sync
1 parent 621eb1b commit 0884a6c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

howto/descriptor.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,9 @@ msgid ""
614614
":meth:`object.__getattribute__` but the instance dictionary lookup is "
615615
"replaced by a search through the class's :term:`method resolution order`."
616616
msgstr ""
617+
"像 ``A.x`` 这样的点操作符查找的逻辑在 :meth:`type.__getattribute__` 中。步骤与 "
618+
":meth:`object.__getattribute__` 相似,但是实例字典查找改为搜索类的 :term:`method resolution "
619+
"order`。"
617620

618621
#: ../../howto/descriptor.rst:728
619622
msgid ""
@@ -625,6 +628,8 @@ msgid ""
625628
"The full C implementation can be found in :c:func:`type_getattro()` and "
626629
":c:func:`_PyType_Lookup()` in :source:`Objects/typeobject.c`."
627630
msgstr ""
631+
"完整的 C 实现可在 :source:`Objects/typeobject.c` 中的 :c:func:`type_getattro()` 和 "
632+
":c:func:`_PyType_Lookup()` 找到。"
628633

629634
#: ../../howto/descriptor.rst:735
630635
msgid "Invocation from super"
@@ -635,6 +640,7 @@ msgid ""
635640
"The logic for super's dotted lookup is in the :meth:`__getattribute__` "
636641
"method for object returned by :class:`super()`."
637642
msgstr ""
643+
"super 的点操作符查找的逻辑在 :class:`super()` 返回的对象的 :meth:`__getattribute__` 方法中。"
638644

639645
#: ../../howto/descriptor.rst:740
640646
msgid ""
@@ -643,6 +649,8 @@ msgid ""
643649
"``A`` and then returns ``B.__dict__['m'].__get__(obj, A)``. If not a "
644650
"descriptor, ``m`` is returned unchanged."
645651
msgstr ""
652+
"类似 ``super(A, obj).m`` 形式的点分查找将在 ``obj.__class__.__mro__`` 中搜索紧接在 ``A`` "
653+
"之后的基类 ``B``,然后返回 ``B.__dict__['m'].__get__(obj, A)``。如果 ``m`` 不是描述器,则直接返回其值。"
646654

647655
#: ../../howto/descriptor.rst:745
648656
msgid ""

0 commit comments

Comments
 (0)