12121313# eric R <[email protected] >, 20181414# ww song <[email protected] >, 201815- # zkonge, 2018
1615# Zombie110year <[email protected] >, 201916+ # zkonge, 2019
1717# Freesand Leo <[email protected] >, 20191818#
1919#, fuzzy
@@ -660,7 +660,7 @@ msgstr ":attr:`__doc__`"
660660msgid ""
661661"The function's documentation string, or ``None`` if unavailable; not "
662662"inherited by subclasses."
663- msgstr ""
663+ msgstr "该函数的文档字符串,没有则为 ``None``不会被子类所继承。 "
664664
665665#: ../../reference/datamodel.rst:475 ../../reference/datamodel.rst:480
666666#: ../../reference/datamodel.rst:483 ../../reference/datamodel.rst:488
@@ -676,15 +676,15 @@ msgstr ":attr:`~definition.\\ __name__`"
676676
677677#: ../../reference/datamodel.rst:480
678678msgid "The function's name."
679- msgstr ""
679+ msgstr "该函数的名称。 "
680680
681681#: ../../reference/datamodel.rst:483
682682msgid ":attr:`~definition.\\ __qualname__`"
683683msgstr ":attr:`~definition.\\ __qualname__`"
684684
685685#: ../../reference/datamodel.rst:483
686686msgid "The function's :term:`qualified name`."
687- msgstr ""
687+ msgstr "该函数的 :term:`qualified name`。 "
688688
689689#: ../../reference/datamodel.rst:488
690690msgid ":attr:`__module__`"
@@ -704,7 +704,7 @@ msgstr ":attr:`__defaults__`"
704704msgid ""
705705"A tuple containing default argument values for those arguments that have "
706706"defaults, or ``None`` if no arguments have a default value."
707- msgstr ""
707+ msgstr "由具有默认值的参数的默认参数值组成的元组,如无任何参数具有默认值则为 ``None``。 "
708708
709709#: ../../reference/datamodel.rst:498
710710msgid ":attr:`__code__`"
@@ -2414,7 +2414,7 @@ msgid ""
24142414"for the declared variables and prevents the automatic creation of *__dict__*"
24152415" and *__weakref__* for each instance."
24162416msgstr ""
2417- "这个类变量可赋值为字符串、可迭代对象或由实例使用的变量名构成的字符串序列。 *__slots__* 会为已声明的变量保留空间,并阻止自动为每个实际创建 "
2417+ "这个类变量可赋值为字符串、可迭代对象或由实例使用的变量名构成的字符串序列。 *__slots__* 会为已声明的变量保留空间,并阻止自动为每个实例创建 "
24182418"*__dict__* 和 *__weakref__*。"
24192419
24202420#: ../../reference/datamodel.rst:1739
@@ -2596,23 +2596,23 @@ msgstr "当一个类定义被执行时,将发生以下步骤:"
25962596
25972597#: ../../reference/datamodel.rst:1864
25982598msgid "MRO entries are resolved;"
2599- msgstr ""
2599+ msgstr "解析 MRO 条目; "
26002600
26012601#: ../../reference/datamodel.rst:1865
26022602msgid "the appropriate metaclass is determined;"
2603- msgstr ""
2603+ msgstr "确定适当的元类; "
26042604
26052605#: ../../reference/datamodel.rst:1866
26062606msgid "the class namespace is prepared;"
2607- msgstr ""
2607+ msgstr "准备类命名空间; "
26082608
26092609#: ../../reference/datamodel.rst:1867
26102610msgid "the class body is executed;"
2611- msgstr ""
2611+ msgstr "执行类主体; "
26122612
26132613#: ../../reference/datamodel.rst:1868
26142614msgid "the class object is created."
2615- msgstr ""
2615+ msgstr "创建类对象。 "
26162616
26172617#: ../../reference/datamodel.rst:1872
26182618msgid "Resolving MRO entries"
@@ -2645,19 +2645,19 @@ msgstr "为一个类定义确定适当的元类是根据以下规则:"
26452645#: ../../reference/datamodel.rst:1892
26462646msgid ""
26472647"if no bases and no explicit metaclass are given, then :func:`type` is used;"
2648- msgstr ""
2648+ msgstr "如果没有基类且没有显式指定元类,则使用 :func:`type`; "
26492649
26502650#: ../../reference/datamodel.rst:1893
26512651msgid ""
26522652"if an explicit metaclass is given and it is *not* an instance of "
26532653":func:`type`, then it is used directly as the metaclass;"
2654- msgstr ""
2654+ msgstr "如果给出一个显式元类而且 *不是* :func:`type` 的实例,则其会被直接用作元类; "
26552655
26562656#: ../../reference/datamodel.rst:1895
26572657msgid ""
26582658"if an instance of :func:`type` is given as the explicit metaclass, or bases "
26592659"are defined, then the most derived metaclass is used."
2660- msgstr ""
2660+ msgstr "如果给出一个 :func:`type` 的实例作为显式元类,或是定义了基类,则使用最近派生的元类。 "
26612661
26622662#: ../../reference/datamodel.rst:1898
26632663msgid ""
@@ -2785,7 +2785,7 @@ msgstr ""
27852785msgid ""
27862786"second, all of these ``__set_name__`` methods are called with the class "
27872787"being defined and the assigned name of that particular descriptor;"
2788- msgstr ""
2788+ msgstr "接下来,所有这些 ``__set_name__`` 方法将使用所定义的类和特定描述器所赋的名称进行调用; "
27892789
27902790#: ../../reference/datamodel.rst:1985
27912791msgid ""
@@ -2902,7 +2902,7 @@ msgstr "模拟泛型类型"
29022902msgid ""
29032903"One can implement the generic class syntax as specified by :pep:`484` (for "
29042904"example ``List[int]``) by defining a special method:"
2905- msgstr ""
2905+ msgstr "通过定义一个特殊方法,可以实现由 :pep:`484` 所规定的泛型类语法 (例如 ``List[int]``): "
29062906
29072907#: ../../reference/datamodel.rst:2060
29082908msgid ""
0 commit comments