File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -708,12 +708,15 @@ msgstr ""
708708msgid ""
709709"On success, return ``0``. On error, raise an exception and return ``-1``."
710710msgstr ""
711+ "成功すると ``0`` を返し、エラーになると例外を送出して ``-1`` を返します。"
711712
712713#: ../../c-api/module.rst:454
713714msgid ""
714715"Return ``NULL`` if *value* is ``NULL``. It must be called with an exception "
715716"raised in this case."
716717msgstr ""
718+ "*value* が ``NULL`` の場合は ``NULL`` を返します。この場合は、例外を送出して"
719+ "呼び出されなければなりません。"
717720
718721#: ../../c-api/module.rst:457 ../../c-api/module.rst:506
719722msgid "Example usage::"
@@ -724,12 +727,16 @@ msgid ""
724727"The example can also be written without checking explicitly if *obj* is "
725728"``NULL``::"
726729msgstr ""
730+ "この例は、明示的に *obj* が ``NULL`` であることを確認せずに書くこともできま"
731+ "す::"
727732
728733#: ../../c-api/module.rst:483 ../../c-api/module.rst:540
729734msgid ""
730735"Note that ``Py_XDECREF()`` should be used instead of ``Py_DECREF()`` in this "
731736"case, since *obj* can be ``NULL``."
732737msgstr ""
738+ "この場合は、 *obj* が ``NULL`` でありうるため、 ``Py_DECREF()`` の代わりに "
739+ "``Py_XDECREF()`` を呼び出す必要があることに注意してください。"
733740
734741#: ../../c-api/module.rst:491
735742msgid ""
Original file line number Diff line number Diff line change @@ -163,6 +163,12 @@ msgid ""
163163"Otherwise, Python's garbage collector will eventually take care of the "
164164"objects in the tree."
165165msgstr ""
166+ "DOM ツリーを使い終えたとき、 :meth:`unlink` メソッドを呼び出して不要になった"
167+ "オブジェクトが早く片付けられるように働きかけることができます。 :meth:"
168+ "`unlink` は、 DOM API に対する :mod:`xml.dom.minidom` 特有の拡張で、ノードと"
169+ "その下位ノードを本質的に無意味なものとします。このメソッドを呼び出さなくて"
170+ "も、 Python のガベージコレクタがいつかはツリーのオブジェクトを後片付けしま"
171+ "す。"
166172
167173#: ../../library/xml.dom.minidom.rst:104
168174msgid ""
You can’t perform that action at this time.
0 commit comments