8000 [skip ci] Update .po files · python/python-docs-ja@d3b5d04 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3b5d04

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent 08ce6c2 commit d3b5d04

File tree

10 files changed

+4887
-4858
lines changed

10 files changed

+4887
-4858
lines changed

c-api/init.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ msgstr "情報取得の関数:"
107107

108108
#: ../../c-api/init.rst:40
109109
msgid ":c:func:`Py_IsInitialized`"
110-
msgstr ""
110+
msgstr ":c:func:`Py_IsInitialized`"
111111

112112
#: ../../c-api/init.rst:41
113113
msgid ":c:func:`PyMem_GetAllocator`"
@@ -1242,6 +1242,8 @@ msgid ""
12421242
"interpreter is in process of being finalized before calling this function to"
12431243
" avoid unwanted termination."
12441244
msgstr ""
1245+
"ランタイムが終了処理をしているときに、スレッドからこの関数を呼び出すと、そのスレッドが Python によって作成されたものではなかったとしても終了させられます。\n"
1246+
":c:func:`_Py_IsFinalizing` や :func:`sys.is_finalizing` を使うと、この関数を呼び出す前にインタプリタが終了される過程の途中なのか確認でき、望まないスレッドの終了が避けられます。"
12451247

12461248
#: ../../c-api/init.rst:868
12471249
msgid ""
@@ -2018,7 +2020,7 @@ msgstr "インタプリタ状態オブジェクトからなるリストのうち
20182020

20192021
#: ../../c-api/init.rst:1400
20202022
msgid "Return the main interpreter state object."
2021-
msgstr ""
2023+
msgstr "メインインタプリタの状態オブジェクトを返します。"
20222024

20232025
#: ../../c-api/init.rst:1405
20242026
msgid ""
@@ -2108,6 +2110,8 @@ msgid ""
21082110
"internal field representing the key's initialization state. There are no "
21092111
"public members in this structure."
21102112
msgstr ""
2113+
"このデータ構造体はスレッドキーの状態を表現しています。この構造体の定義は、根底の TLS 実装に依存し、キーの初期化状態を表現する内部フィールドを持ちます。\n"
2114+
"この構造体には公開 (public) のメンバはありません。"
21112115

21122116
#: ../../c-api/init.rst:1468
21132117
msgid ""
@@ -2135,6 +2139,8 @@ msgid ""
21352139
"built with :ref:`Py_LIMITED_API <stable>`, where static allocation of this "
21362140
"type is not possible due to its implementation being opaque at build time."
21372141
msgstr ""
2142+
"動的な :c:type:`Py_tss_t` のメモリ確保は :ref:`Py_LIMITED_API <stable>` "
2143+
"でビルドされた拡張モジュールで必要になりますが、その実装がビルド時に不透明なために、この型の静的なメモリ確保は不可能です。"
21382144

21392145
#: ../../c-api/init.rst:1488
2140 8000 2146
msgid ""

c-api/module.po

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.7\n"
1313
"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"
1515
"PO-Revision-Date: 2019-09-01 03:40+0000\n"
1616
"Last-Translator: tomo, 2019\n"
1717
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
@@ -585,23 +585,31 @@ msgstr ""
585585
msgid ""
586586
"Add an object to *module* as *name*. This is a convenience function which "
587587
"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."
589589
msgstr ""
590-
"*module* にオブジェクトを *name* として追加します。\n"
591-
"この関数はモジュールの初期化関数から利用される便利関数です。\n"
592-
"これは *value* への参照を盗みます。\n"
593-
"エラーのときには ``-1`` を、成功したときには ``0`` を返します。"
594590

595591
#: ../../c-api/module.rst:424
596592
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 ""
597605
"Add an integer constant to *module* as *name*. This convenience function "
598606
"can be used from the module's initialization function. Return ``-1`` on "
599607
"error, ``0`` on success."
600608
msgstr ""
601609
"*module* に整数定数を *name* として追加します。この便宜関数はモジュールの初期化関数から利用されています。エラーのときには ``-1``"
602610
" を、成功したときには ``0`` を返します。"
603611

604-
#: ../../c-api/module.rst:431
612+
#: ../../c-api/module.rst:446
605613
msgid ""
606614
"Add a string constant to *module* as *name*. This convenience function can "
607615
"be used from the module's initialization function. The string *value* must "
@@ -612,7 +620,7 @@ msgstr ""
612620
"文字列 *value* は *NULL* 終端されていなければなりません。\n"
613621
"エラーのときには ``-1`` を、成功したときには ``0`` を返します。"
614622

615-
#: ../../c-api/module.rst:438
623+
#: ../../c-api/module.rst:453
616624
msgid ""
617625
"Add an int constant to *module*. The name and the value are taken from "
618626
"*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int "
@@ -623,15 +631,15 @@ msgstr ""
623631
"``PyModule_AddIntMacro(module, AF_INET)`` とすると、 *AF_INET* という名前の int 型定数を "
624632
"*AF_INET* の値で *module* に追加します。エラー時には ``-1`` を、成功時には ``0`` を返します。"
625633

626-
#: ../../c-api/module.rst:446
634+
#: ../../c-api/module.rst:461
627635
msgid "Add a string constant to *module*."
628636
msgstr "文字列定数を *module* に追加します。"
629637

630-
#: ../../c-api/module.rst:450
638+
#: ../../c-api/module.rst:465
631639
msgid "Module lookup"
632640
msgstr "モジュール検索"
633641

634-
#: ../../c-api/module.rst:452
642+
#: ../../c-api/module.rst:467
635643
msgid ""
636644
"Single-phase initialization creates singleton modules that can be looked up "
637645
"in the context of the current interpreter. This allows the module object to "
@@ -640,14 +648,14 @@ msgstr ""
640648
"一段階初期化は、現在のインタプリタのコンテキストから探せるシングルトンのモジュールを生成します。\n"
641649
"これによって、後からモジュール定義への参照だけでモジュールオブジェクトが取得できます。"
642650

643-
#: ../../c-api/module.rst:456
651+
#: ../../c-api/module.rst:471
644652
msgid ""
645653
"These functions will not work on modules created using multi-phase "
646654
"initialization, since multiple such modules can be created from a single "
647655
"definition."
648656
msgstr "多段階初期化を使うと単一の定義から複数のモジュールが作成できるので、これらの関数は多段階初期化を使って作成されたモジュールには使えません。"
649657

650-
#: ../../c-api/module.rst:461
658+
#: ../../c-api/module.rst:476
651659
msgid ""
652660
"Returns the module object that was created from *def* for the current "
653661
"interpreter. This method requires that the module object has been attached "
@@ -660,7 +668,7 @@ msgstr ""
660668
"にモジュールオブジェクトを連結しておくことを要求します。対応するモジュールオブジェクトが見付からない、もしくは事前にインタプリタの state "
661669
"に連結されていない場合は、 *NULL* を返します。"
662670

663-
#: ../../c-api/module.rst:468
671+
#: ../../c-api/module.rst:483
664672
msgid ""
665673
"Attaches the module object passed to the function to the interpreter state. "
666674
"This allows the module object to be accessible via "
@@ -669,11 +677,11 @@ msgstr ""
669677
"関数に渡されたモジュールオブジェクトを、インタプリタの state に連結します。この関数を使うことで "
670678
":c:func:`PyState_FindModule` からモジュールオブジェクトにアクセスできるようになります。"
671679

672-
#: ../../c-api/module.rst:471
680+
#: ../../c-api/module.rst:486
673681
msgid "Only effective on modules created using single-phase initialization."
674682
msgstr "一段階初期化を使って作成されたモジュールにのみ有効です。"
675683

676-
#: ../../c-api/module.rst:477
684+
#: ../../c-api/module.rst:492
677685
msgid ""
678686
"Removes the module object created from *def* from the interpreter state."
679687
msgstr "*def* から作られたモジュールオブジェクトをインタプリタ state から削除します。"

c-api/sequence.po

Lines changed: 24 additions & 18 deletions
F42D
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.7\n"
1313
"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"
1515
"PO-Revision-Date: 2019-09-01 03:41+0000\n"
1616
"Last-Translator: tomo, 2019\n"
1717
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
@@ -189,18 +189,26 @@ msgstr ""
189189

190190
#: ../../c-api/sequence.rst:133
191191
msgid ""
192-
"Return the sequence or iterable *o* as a list, unless it is already a tuple "
193-
"or list, in which case *o* is returned. Use "
194-
":c:func:`PySequence_Fast_GET_ITEM` to access the members of the result. "
195-
"Returns *NULL* on failure. If the object is not a sequence or iterable, "
196-
"raises :exc:`TypeError` with *m* as the message text."
192+
"Return the sequence or iterable *o* as an object usable by the other "
193+
"``PySequence_Fast*`` family of functions. If the object is not a sequence or"
194+
" iterable, raises :exc:`TypeError` with *m* as the message text. Returns "
195+
"*NULL* on failure."
197196
msgstr ""
198-
"シーケンスかイテラブルの *o* をリストとして返します。 *o* が既にタプルかリストだった場合は *o* をそのまま返します。\n"
199-
"返されたタプルのメンバにアクセスするには :c:func:`PySequence_Fast_GET_ITEM` を使います。\n"
200-
"失敗すると *NULL* を返します。\n"
201-
"オブジェクトがシーケンスやイテラブルでなければ、 *m* をメッセージテキストにとする :exc:`TypeError` を送出します。 "
202197

203-
#: ../../c-api/sequence.rst:141
198+
#: ../../c-api/sequence.rst:138
199+
msgid ""
200+
"The ``PySequence_Fast*`` functions are thus named because they assume *o* is"
201+
" a :c:type:`PyTupleObject` or a :c:type:`PyListObject` and access the data "
202+
"fields of *o* directly."
203+
msgstr ""
204+
205+
#: ../../c-api/sequence.rst:142
206+
msgid ""
207+
"As a CPython implementation detail, if *o* is already a sequence or list, it"
208+
" will be returned."
209+
msgstr ""
210+
211+
#: ../../c-api/sequence.rst:148
204212
msgid ""
205213
"Returns the length of *o*, assuming that *o* was returned by "
206214
":c:func:`PySequence_Fast` and that *o* is not *NULL*. The size can also be "
@@ -212,36 +220,34 @@ msgstr ""
212220
"の長さを返します。 *o* のサイズは :c:func:`PySequence_Size` を呼び出しても得られますが、 "
213221
":c:func:`PySequence_Fast_GET_SIZE` の方が *o* をリストかタプルであると仮定して処理するため、より高速です。"
214222

215-
#: ../../c-api/sequence.rst:150
223+
#: ../../c-api/sequence.rst:157
216224
msgid ""
217225
"Return the *i*\\ th element of *o*, assuming that *o* was returned by "
218226
":c:func:`PySequence_Fast`, *o* is not *NULL*, and that *i* is within bounds."
219227
msgstr ""
220228
"*o* が *NULL* でなく、 :c:func:`PySequence_Fast` が返したオブジェクトであり、かつ *i* "
221229
"がインデクスの範囲内にあると仮定して、 *o* の *i* 番目の要素を返します。"
222230

223-
#: ../../c-api/sequence.rst:156
231+
#: ../../c-api/sequence.rst:163
224232
msgid ""
225233
"Return the underlying array of PyObject pointers. Assumes that *o* was "
226234
"returned by :c:func:`PySequence_Fast` and *o* is not *NULL*."
227235
msgstr ""
228236
"PyObject ポインタの背後にあるアレイを返します。この関数では、 *o* は :c:func:`PySequence_Fast` "
229237
"の返したオブジェクトであり、 *NULL* でないものと仮定しています。"
230238

231-
#: ../../c-api/sequence.rst:159
239+
#: ../../c-api/sequence.rst:166
232240
msgid ""
233241
"Note, if a list gets resized, the reallocation may relocate the items array."
234242
" So, only use the underlying array pointer in contexts where the sequence "
235243
"cannot change."
236244
msgstr ""
237245
"リストのサイズが変更されるとき、メモリ再確保が要素の配列を再配置するかもしれないことに注意してください。そのため、シーケンスの変更が発生しないコンテキストでのみ背後にあるポインタを使ってください。"
238246

239-
#: ../../c-api/sequence.rst:166
247+
#: ../../c-api/sequence.rst:173
240248
msgid ""
241-
"Return the *i*\\ th element of *o* or *NULL* on failure. Macro form of "
249+
"Return the *i*\\ th element of *o* or *NULL* on failure. Faster form of "
242250
":c:func:`PySequence_GetItem` but without checking that "
243251
":c:func:`PySequence_Check` on *o* is true and without adjustment for "
244252
"negative indices."
245253
msgstr ""
246-
"成功すると *o* の *i* 番目の要素を返し、失敗すると *NULL* を返します。 :c:func:`PySequence_GetItem` "
247-
"ですが、 *o* への :c:func:`PySequence_Check` が真になるかチェックせず、負のインデクスに対する調整を行いません。"

0 commit comments

Comments
 (0)
0