Skip to content

Commit fe54270

Browse files
sync with cpython b27e2273
1 parent dcbbc03 commit fe54270

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4638
-4491
lines changed

c-api/exceptions.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.13\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-09-24 07:20+0000\n"
11+
"POT-Creation-Date: 2024-09-27 00:14+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:05+0000\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -784,9 +784,9 @@ msgstr ""
784784

785785
#: ../../c-api/exceptions.rst:736
786786
msgid ""
787-
"The :attr:`!__module__` attribute of the new class is set to the first part "
788-
"(up to the last dot) of the *name* argument, and the class name is set to "
789-
"the last part (after the last dot). The *base* argument can be used to "
787+
"The :attr:`~type.__module__` attribute of the new class is set to the first "
788+
"part (up to the last dot) of the *name* argument, and the class name is set "
789+
"to the last part (after the last dot). The *base* argument can be used to "
790790
"specify alternate base classes; it can either be only one class or a tuple "
791791
"of classes. The *dict* argument can be used to specify a dictionary of class "
792792
"variables and methods."

c-api/object.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-09-23 07:52+0800\n"
10+
"POT-Creation-Date: 2024-09-27 00:14+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -477,17 +477,17 @@ msgstr ""
477477

478478
#: ../../c-api/object.rst:370
479479
msgid ""
480-
"If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to "
480+
"If *cls* has a :meth:`~type.__subclasscheck__` method, it will be called to "
481481
"determine the subclass status as described in :pep:`3119`. Otherwise, "
482482
"*derived* is a subclass of *cls* if it is a direct or indirect subclass, i."
483-
"e. contained in ``cls.__mro__``."
483+
"e. contained in :attr:`cls.__mro__ <type.__mro__>`."
484484
msgstr ""
485485

486486
#: ../../c-api/object.rst:375
487487
msgid ""
488488
"Normally only class objects, i.e. instances of :class:`type` or a derived "
489489
"class, are considered classes. However, objects can override this by having "
490-
"a :attr:`~class.__bases__` attribute (which must be a tuple of base classes)."
490+
"a :attr:`~type.__bases__` attribute (which must be a tuple of base classes)."
491491
msgstr ""
492492

493493
#: ../../c-api/object.rst:382
@@ -498,21 +498,21 @@ msgstr ""
498498

499499
#: ../../c-api/object.rst:389
500500
msgid ""
501-
"If *cls* has a :meth:`~class.__instancecheck__` method, it will be called to "
501+
"If *cls* has a :meth:`~type.__instancecheck__` method, it will be called to "
502502
"determine the subclass status as described in :pep:`3119`. Otherwise, "
503503
"*inst* is an instance of *cls* if its class is a subclass of *cls*."
504504
msgstr ""
505505

506506
#: ../../c-api/object.rst:393
507507
msgid ""
508508
"An instance *inst* can override what is considered its class by having a :"
509-
"attr:`~instance.__class__` attribute."
509+
"attr:`~object.__class__` attribute."
510510
msgstr ""
511511

512512
#: ../../c-api/object.rst:396
513513
msgid ""
514514
"An object *cls* can override if it is considered a class, and what its base "
515-
"classes are, by having a :attr:`~class.__bases__` attribute (which must be a "
515+
"classes are, by having a :attr:`~type.__bases__` attribute (which must be a "
516516
"tuple of base classes)."
517517
msgstr ""
518518

0 commit comments

Comments
 (0)