@@ -147,12 +147,10 @@ msgid ""
147147msgstr ""
148148
149149#: ../../c-api/type.rst:127
150- #, fuzzy
151150msgid ""
152151"On success, this function returns ``0``. On failure, this function returns "
153152"``-1`` with an exception set."
154- msgstr ""
155- "在發生錯誤時,將 *\\ *result* 設為 ``NULL`` 並回傳 ``-1``,同時設定例外。"
153+ msgstr "成功時此函式會回傳 ``0``。失敗時此函式回傳 ``-1`` 並設定例外。"
156154
157155#: ../../c-api/type.rst:135
158156msgid "Type of a type-watcher callback function."
@@ -470,19 +468,19 @@ msgstr ""
470468msgid ""
471469":py:meth:`~object.__new__` is not called on the new class (and it must be "
472470"set to ``type.__new__``)."
473- msgstr ""
471+ msgstr ":py:meth:`~object.__new__` 不會在新類別上被呼叫(且它必須被設為 ``type.__new__``)。 "
474472
475473#: ../../c-api/type.rst:387
476474msgid ":py:meth:`~object.__init__` is not called on the new class."
477- msgstr ""
475+ msgstr ":py:meth:`~object.__init__` 不會在新類別上被呼叫。 "
478476
479477#: ../../c-api/type.rst:388
480478msgid ":py:meth:`~object.__init_subclass__` is not called on any bases."
481- msgstr ""
479+ msgstr ":py:meth:`~object.__init_subclass__` 不會在任何基底上被呼叫。 "
482480
483481#: ../../c-api/type.rst:389
484482msgid ":py:meth:`~object.__set_name__` is not called on new descriptors."
485- msgstr ""
483+ msgstr ":py:meth:`~object.__set_name__` 不會在新的描述器上被呼叫。 "
486484
487485#: ../../c-api/type.rst:395
488486msgid "Equivalent to ``PyType_FromMetaclass(NULL, module, spec, bases)``."
@@ -535,7 +533,7 @@ msgstr ""
535533
536534#: ../../c-api/type.rst:464
537535msgid "All base classes of *type* must be immutable."
538- msgstr ""
536+ msgstr "所有 *type* 的基底類別都必須是不可變的。 "
539537
540538#: ../../c-api/type.rst:466
541539msgid "On success, return ``0``. On error, set an exception and return ``-1``."
@@ -626,6 +624,7 @@ msgid ""
626624"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, :c:func:"
627625"`PyType_FromSpecWithBases` sets it automatically."
628626msgstr ""
627+ "如果未設定 ``Py_TPFLAGS_HEAPTYPE`` 旗標,則 :c:func:`PyType_FromSpecWithBases` 會自動設定它。"
629628
630629#: ../../c-api/type.rst:542
631630msgid ""
@@ -657,15 +656,15 @@ msgstr ""
657656
658657#: ../../c-api/type.rst:568
659658msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`"
660- msgstr ""
659+ msgstr "``Py_tp_dealloc`` 以設定 :c:member:`PyTypeObject.tp_dealloc` "
661660
662661#: ../../c-api/type.rst:569
663662msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`"
664- msgstr ""
663+ msgstr "``Py_nb_add`` 以設定 :c:member:`PyNumberMethods.nb_add` "
665664
666665#: ../../c-api/type.rst:570
667666msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`"
668- msgstr ""
667+ msgstr "``Py_sq_length`` 以設定 :c:member:`PySequenceMethods.sq_length` "
669668
670669#: ../../c-api/type.rst:572
671670msgid ""
@@ -785,6 +784,8 @@ msgid ""
785784"static PyType_Slot foo_slots[] = {\n"
786785" {Py_tp_token, Py_TP_USE_SPEC},"
787786msgstr ""
787+ "static PyType_Slot foo_slots[] = {\n"
788+ " {Py_tp_token, Py_TP_USE_SPEC},"
788789
789790#: ../../c-api/type.rst:645
790791msgid "It can also be set to an arbitrary pointer, but you must ensure that:"
0 commit comments