Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcba641f

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent99bb418 commitcba641f

16 files changed

+8150
-7855
lines changed

‎c-api/init.po

Lines changed: 240 additions & 200 deletions
Large diffs are not rendered by default.

‎c-api/module.po

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version:Python 3.8\n"
1717
"Report-Msgid-Bugs-To:\n"
18-
"POT-Creation-Date:2019-09-01 14:24+0000\n"
18+
"POT-Creation-Date:2019-09-13 11:25+0000\n"
1919
"PO-Revision-Date:2017-02-16 17:37+0000\n"
2020
"Last-Translator:tomo, 2019\n"
2121
"Language-Team:Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
@@ -589,23 +589,31 @@ msgstr ""
589589
msgid""
590590
"Add an object to *module* as *name*. This is a convenience function which "
591591
"can be used from the module's initialization function. This steals a "
592-
"reference to *value*. Return ``-1`` on error, ``0`` on success."
592+
"reference to *value* on success. Return ``-1`` on error, ``0`` on success."
593593
msgstr""
594-
"*module* にオブジェクトを *name* として追加します。\n"
595-
"この関数はモジュールの初期化関数から利用される便利関数です。\n"
596-
"これは *value* への参照を盗みます。\n"
597-
"エラーのときには ``-1`` を、成功したときには ``0`` を返します。"
598594

599595
#:../../c-api/module.rst:424
600596
msgid""
597+
"Unlike other functions that steal references, ``PyModule_AddObject()`` only "
598+
"decrements the reference count of *value* **on success**."
599+
msgstr""
600+
601+
#:../../c-api/module.rst:427
602+
msgid""
603+
"This means that its return value must be checked, and calling code must "
604+
":c:func:`Py_DECREF` *value* manually on error. Example usage::"
605+
msgstr""
606+
607+
#:../../c-api/module.rst:439
608+
msgid""
601609
"Add an integer constant to *module* as *name*. This convenience function "
602610
"can be used from the module's initialization function. Return ``-1`` on "
603611
"error, ``0`` on success."
604612
msgstr""
605613
"*module* に整数定数を *name* として追加します。この便宜関数はモジュールの初期化関数から利用されています。エラーのときには ``-1``"
606614
" を、成功したときには ``0`` を返します。"
607615

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

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

630-
#:../../c-api/module.rst:446
638+
#:../../c-api/module.rst:461
631639
msgid"Add a string constant to *module*."
632640
msgstr"文字列定数を *module* に追加します。"
633641

634-
#:../../c-api/module.rst:450
642+
#:../../c-api/module.rst:465
635643
msgid"Module lookup"
636644
msgstr"モジュール検索"
637645

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

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

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

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

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

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

‎c-api/sequence.po

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version:Python 3.8\n"
1515
"Report-Msgid-Bugs-To:\n"
16-
"POT-Creation-Date:2019-09-01 14:24+0000\n"
16+
"POT-Creation-Date:2019-09-13 11:25+0000\n"
1717
"PO-Revision-Date:2017-02-16 17:38+0000\n"
1818
"Last-Translator:tomo, 2018\n"
1919
"Language-Team:Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
@@ -191,18 +191,26 @@ msgstr ""
191191

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

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

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

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

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp