@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.7\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2019-01-01 10:14+0900 \n "
14
+ "POT-Creation-Date : 2019-09-13 03:32+0000 \n "
15
15
"PO-Revision-Date : 2019-09-01 03:40+0000\n "
16
16
"Last-Translator : tomo, 2019\n "
17
17
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -585,23 +585,31 @@ msgstr ""
585
585
msgid ""
586
586
"Add an object to *module* as *name*. This is a convenience function which "
587
587
"can be used from the module's initialization function. This steals a "
588
- "reference to *value*. Return ``-1`` on error, ``0`` on success."
588
+ "reference to *value* on success . Return ``-1`` on error, ``0`` on success."
589
589
msgstr ""
590
- "*module* にオブジェクトを *name* として追加します。\n"
591
- "この関数はモジュールの初期化関数から利用される便利関数です。\n"
592
- "これは *value* への参照を盗みます。\n"
593
- "エラーのときには ``-1`` を、成功したときには ``0`` を返します。"
594
590
595
591
#: ../../c-api/module.rst:424
596
592
msgid ""
593
+ "Unlike other functions that steal references, ``PyModule_AddObject()`` only "
594
+ "decrements the reference count of *value* **on success**."
595
+ msgstr ""
596
+
597
+ #: ../../c-api/module.rst:427
598
+ msgid ""
599
+ "This means that its return value must be checked, and calling code must "
600
+ ":c:func:`Py_DECREF` *value* manually on error. Example usage::"
601
+ msgstr ""
602
+
603
+ #: ../../c-api/module.rst:439
604
+ msgid ""
597
605
"Add an integer constant to *module* as *name*. This convenience function "
598
606
"can be used from the module's initialization function. Return ``-1`` on "
599
607
"error, ``0`` on success."
600
608
msgstr ""
601
609
"*module* に整数定数を *name* として追加します。この便宜関数はモジュールの初期化関数から利用されています。エラーのときには ``-1``"
602
610
" を、成功したときには ``0`` を返します。"
603
611
604
- #: ../../c-api/module.rst:431
612
+ #: ../../c-api/module.rst:446
605
613
msgid ""
606
614
"Add a string constant to *module* as *name*. This convenience function can "
607
615
"be used from the module's initialization function. The string *value* must "
@@ -612,7 +620,7 @@ msgstr ""
612
620
"文字列 *value* は *NULL* 終端されていなければなりません。\n"
613
621
"エラーのときには ``-1`` を、成功したときには ``0`` を返します。"
614
622
615
- #: ../../c-api/module.rst:438
623
+ #: ../../c-api/module.rst:453
616
624
msgid ""
617
625
"Add an int constant to *module*. The name and the value are taken from "
618
626
"*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int "
@@ -623,15 +631,15 @@ msgstr ""
623
631
"``PyModule_AddIntMacro(module, AF_INET)`` とすると、 *AF_INET* という名前の int 型定数を "
624
632
"*AF_INET* の値で *module* に追加します。エラー時には ``-1`` を、成功時には ``0`` を返します。"
625
633
626
- #: ../../c-api/module.rst:446
634
+ #: ../../c-api/module.rst:461
627
635
msgid "Add a string constant to *module*."
628
636
msgstr "文字列定数を *module* に追加します。"
629
637
630
- #: ../../c-api/module.rst:450
638
+ #: ../../c-api/module.rst:465
631
639
msgid "Module lookup"
632
640
msgstr "モジュール検索"
633
641
634
- #: ../../c-api/module.rst:452
642
+ #: ../../c-api/module.rst:467
635
643
msgid ""
636
644
"Single-phase initialization creates singleton modules that can be looked up "
637
645
"in the context of the current interpreter. This allows the module object to "
@@ -640,14 +648,14 @@ msgstr ""
640
648
"一段階初期化は、現在のインタプリタのコンテキストから探せるシングルトンのモジュールを生成します。\n"
641
649
"これによって、後からモジュール定義への参照だけでモジュールオブジェクトが取得できます。"
642
650
643
- #: ../../c-api/module.rst:456
651
+ #: ../../c-api/module.rst:471
644
652
msgid ""
645
653
"These functions will not work on modules created using multi-phase "
646
654
"initialization, since multiple such modules can be created from a single "
647
655
"definition."
648
656
msgstr "多段階初期化を使うと単一の定義から複数のモジュールが作成できるので、これらの関数は多段階初期化を使って作成されたモジュールには使えません。"
649
657
650
- #: ../../c-api/module.rst:461
658
+ #: ../../c-api/module.rst:476
651
659
msgid ""
652
660
"Returns the module object that was created from *def* for the current "
653
661
"interpreter. This method requires that the module object has been attached "
@@ -660,7 +668,7 @@ msgstr ""
660
668
"にモジュールオブジェクトを連結しておくことを要求します。対応するモジュールオブジェクトが見付からない、もしくは事前にインタプリタの state "
661
669
"に連結されていない場合は、 *NULL* を返します。"
662
670
663
- #: ../../c-api/module.rst:468
671
+ #: ../../c-api/module.rst:483
664
672
msgid ""
665
673
"Attaches the module object passed to the function to the interpreter state. "
666
674
"This allows the module object to be accessible via "
@@ -669,11 +677,11 @@ msgstr ""
669
677
"関数に渡されたモジュールオブジェクトを、インタプリタの state に連結します。この関数を使うことで "
670
678
":c:func:`PyState_FindModule` からモジュールオブジェクトにアクセスできるようになります。"
671
679
672
- #: ../../c-api/module.rst:471
680
+ #: ../../c-api/module.rst:486
673
681
msgid "Only effective on modules created using single-phase initialization."
674
682
msgstr "一段階初期化を使って作成されたモジュールにのみ有効です。"
675
683
676
- #: ../../c-api/module.rst:477
684
+ #: ../../c-api/module.rst:492
677
685
msgid ""
678
686
"Removes the module object created from *def* from the interpreter state."
679
687
msgstr "*def* から作られたモジュールオブジェクトをインタプリタ state から削除します。"
0 commit comments