@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.12\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-07-19 14:50+0000\n "
14+ "POT-Creation-Date : 2024-09-27 14:50+0000\n "
1515"PO-Revision-Date : 2024-05-11 00:32+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -354,24 +354,19 @@ msgstr ""
354354
355355#: ../../c-api/object.rst:256
356356msgid ""
357- "If *cls* has a :meth:`~class .__subclasscheck__` method, it will be called to"
358- " determine the subclass status as described in :pep:`3119`. Otherwise, "
357+ "If *cls* has a :meth:`~type .__subclasscheck__` method, it will be called to "
358+ "determine the subclass status as described in :pep:`3119`. Otherwise, "
359359"*derived* is a subclass of *cls* if it is a direct or indirect subclass, "
360- "i.e. contained in `` cls.__mro__` `."
360+ "i.e. contained in :attr:` cls.__mro__ <type.__mro__> `."
361361msgstr ""
362- "正如 :pep:`3119` 所述,如果 *cls* 带有 :meth:`~class.__subclasscheck__` "
363- "方法,将会被调用以确定子类的状态。 否则,如果 *derived* 是个直接或间接子类,即包含在 ``cls.__mro__`` 中,那么它就是 "
364- "*cls* 的一个子类。"
365362
366363#: ../../c-api/object.rst:261
367364msgid ""
368365"Normally only class objects, i.e. instances of :class:`type` or a derived "
369366"class, are considered classes. However, objects can override this by having"
370- " a :attr:`~class .__bases__` attribute (which must be a tuple of base "
367+ " a :attr:`~type .__bases__` attribute (which must be a tuple of base "
371368"classes)."
372369msgstr ""
373- "通常只有类对象(即 :class:`type` 或派生类的实例)才被视为类。 但是,对象可以通过设置 :attr:`~class.__bases__` "
374- "属性(必须是基类的元组)来覆盖这一点。"
375370
376371#: ../../c-api/object.rst:268
377372msgid ""
@@ -382,26 +377,23 @@ msgstr ""
382377
383378#: ../../c-api/object.rst:275
384379msgid ""
385- "If *cls* has a :meth:`~class .__instancecheck__` method, it will be called to"
386- " determine the subclass status as described in :pep:`3119`. Otherwise, "
380+ "If *cls* has a :meth:`~type .__instancecheck__` method, it will be called to "
381+ "determine the subclass status as described in :pep:`3119`. Otherwise, "
387382"*inst* is an instance of *cls* if its class is a subclass of *cls*."
388383msgstr ""
389- "正如 :pep:`3119` 所述,如果 *cls* 带有 :meth:`~class.__subclasscheck__` "
390- "方法,将会被调用以确定子类的状态。 否则,如果 *derived* 是 *cls* 的子类,那么它就是 *cls* 的一个实例。"
391384
392385#: ../../c-api/object.rst:279
393386msgid ""
394387"An instance *inst* can override what is considered its class by having a "
395- ":attr:`~instance .__class__` attribute."
396- msgstr "实例 *inst* 可以通过 :attr:`~instance.__class__` 属性来覆盖其所属的类。 "
388+ ":attr:`~object .__class__` attribute."
389+ msgstr ""
397390
398391#: ../../c-api/object.rst:282
399392msgid ""
400393"An object *cls* can override if it is considered a class, and what its base "
401- "classes are, by having a :attr:`~class .__bases__` attribute (which must be a"
402- " tuple of base classes)."
394+ "classes are, by having a :attr:`~type .__bases__` attribute (which must be a "
395+ "tuple of base classes)."
403396msgstr ""
404- "对象 *cls* 可以通过设置 :attr:`~class.__bases__` 属性(该属性必须是基类的元组)来覆盖其是否会被视为类,及其有哪些基类。"
405397
406398#: ../../c-api/object.rst:291
407399msgid ""
0 commit comments