Skip to content

Commit c2ffe9e

Browse files
[po] auto sync
1 parent 0cf80c7 commit c2ffe9e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

reference/datamodel.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2944,6 +2944,11 @@ msgid ""
29442944
"``__new__``, but when the final class object is created the namespace is "
29452945
"copied into a new ``dict``."
29462946
msgstr ""
2947+
"一旦确定了适当的元类,就将准备好类的命名空间。 如果元类具有 ``__prepare__`` 属性,它将以 ``namespace = "
2948+
"metaclass.__prepare__(name, bases, **kwds)`` "
2949+
"的形式被调用(其中如果存在任何额外关键字参数,则应来自类定义)。 ``__prepare__`` 方法应当被实现为 :func:`类方法 "
2950+
"<classmethod>`。 ``__prepare__`` 所返回的命名空间会被传入 "
2951+
"``__new__``,但是当最终的类对象被创建时该命名空间会被拷贝到一个新的 ``dict`` 中。"
29472952

29482953
#: ../../reference/datamodel.rst:2064
29492954
msgid ""
@@ -3031,6 +3036,8 @@ msgid ""
30313036
"ultimately calls ``type.__new__``, the following additional customization "
30323037
"steps are invoked after creating the class object:"
30333038
msgstr ""
3039+
"当使用默认的元类 :class:`type`,或者任何最终会调用 ``type.__new__`` "
3040+
"的元类时,以下额外的自定义步骤将在创建类对象之后被发起调用:"
30343041

30353042
#: ../../reference/datamodel.rst:2126
30363043
msgid ""

0 commit comments

Comments
 (0)