Skip to content

Commit 72fbdfe

Browse files
author
github-actions
committed
Merge 3.11 into 3.10
1 parent 1c9a410 commit 72fbdfe

File tree

7 files changed

+96
-3
lines changed

7 files changed

+96
-3
lines changed

c-api/buffer.po

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,10 @@ msgid ""
770770
"the exporter cannot provide a buffer of the exact type, it MUST raise :c:"
771771
"data:`PyExc_BufferError`, set ``view->obj`` to ``NULL`` and return ``-1``."
772772
msgstr ""
773+
"*exporter* に *flags* で指定された方法で *view* を埋めるように要求します。\n"
774+
"もし exporter が指定されたとおりにバッファを提供できない場合、 :c:data:"
775+
"`PyExc_BufferError` を送出し、 ``view->obj`` を ``NULL`` に設定した上で、 "
776+
"``-1`` を返さなければなりません。"
773777

774778
#: ../../c-api/buffer.rst:444
775779
msgid ""
@@ -778,6 +782,11 @@ msgid ""
778782
"redirect requests to a single object, ``view->obj`` MAY refer to this object "
779783
"instead of *exporter* (See :ref:`Buffer Object Structures <buffer-structs>`)."
780784
msgstr ""
785+
"成功したときは、 *view* を埋め、 ``view->obj`` に *exporter* への新しい参照を"
786+
"設定し、0を返します。チェイン状のバッファプロバイダがリクエストを単一のオブ"
787+
"ジェクトにリダイレクトするケースでは、 ``view->obj`` は *exporter* の代わりに"
788+
"このオブジェクトを参照します (:ref:`バッファオブジェクト構造体 <buffer-"
789+
"structs>` を参照してください)。"
781790

782791
#: ../../c-api/buffer.rst:449
783792
msgid ""
@@ -798,6 +807,9 @@ msgid ""
798807
">obj``. This function MUST be called when the buffer is no longer being "
799808
"used, otherwise reference leaks may occur."
800809
msgstr ""
810+
"バッファ *view* を解放し、 ``view->obj`` の参照カウントを1つ減らします。\n"
811+
"この関数はバッファが使われることがなくなったときに呼び出さなければならず、そ"
812+
"うしないと参照のリークが起こり得ます。"
801813

802814
#: ../../c-api/buffer.rst:461
803815
msgid ""
@@ -897,6 +909,10 @@ msgid ""
897909
"Otherwise, raise :c:data:`PyExc_BufferError`, set ``view->obj`` to ``NULL`` "
898910
"and return ``-1``;"
899911
msgstr ""
912+
"成功したときは、 ``view->obj`` に *exporter* への新しい参照を設定し、 0 を返"
913+
"します。\n"
914+
"失敗したときは、 :c:data:`PyExc_BufferError` を送出し、 ``view->obj`` に "
915+
"``NULL`` を設定し、 ``-1`` を返します;"
900916

901917
#: ../../c-api/buffer.rst:523
902918
msgid ""

c-api/call.po

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr ""
2424

2525
#: ../../c-api/call.rst:6
2626
msgid "Call Protocol"
27-
msgstr "Call Protocol"
27+
msgstr "Call プロトコル"
2828

2929
#: ../../c-api/call.rst:8
3030
msgid ""
@@ -396,6 +396,9 @@ msgid ""
396396
"*args* must not be *NULL*; use an empty tuple if no arguments are needed. If "
397397
"no named arguments are needed, *kwargs* can be *NULL*."
398398
msgstr ""
399+
"*args* は *NULL* であってはならず、引数を必要としない場合は空のタプルを使って"
400+
"ください。\n"
401+
"*kwargs* は *NULL* でも構いません。"
399402

400403
#: ../../c-api/call.rst:227 ../../c-api/call.rst:239 ../../c-api/call.rst:250
401404
#: ../../c-api/call.rst:261 ../../c-api/call.rst:273 ../../c-api/call.rst:293
@@ -456,6 +459,9 @@ msgid ""
456459
"Note that if you only pass :c:expr:`PyObject *` args, :c:func:"
457460
"`PyObject_CallFunctionObjArgs` is a faster alternative."
458461
msgstr ""
462+
":c:expr:`PyObject *` args だけを引数に渡す場合は、 :c:func:"
463+
"`PyObject_CallFunctionObjArgs` がより速い方法であることを覚えておいてくださ"
464+
"い。 "
459465

460466
#: ../../c-api/call.rst:281
461467
msgid "The type of *format* was changed from ``char *``."
@@ -467,6 +473,10 @@ msgid ""
467473
"arguments. The C arguments are described by a :c:func:`Py_BuildValue` "
468474
"format string that should produce a tuple."
469475
msgstr ""
476+
"オブジェクト *obj* の *name* という名前のメソッドを、いくつかの C 引数ととも"
477+
"に呼び出します。\n"
478+
"C 引数はタプルを生成する :c:func:`Py_BuildValue` 形式のフォーマット文字列で記"
479+
"述されています。"
470480

471481
#: ../../c-api/call.rst:291
472482
msgid "The format can be *NULL*, indicating that no arguments are provided."
@@ -483,6 +493,9 @@ msgid ""
483493
"Note that if you only pass :c:expr:`PyObject *` args, :c:func:"
484494
"`PyObject_CallMethodObjArgs` is a faster alternative."
485495
msgstr ""
496+
":c:expr:`PyObject *` args だけを引数に渡す場合は、 :c:func:"
497+
"`PyObject_CallMethodObjArgs` がより速い方法であることを覚えておいてくださ"
498+
"い。 "
486499

487500
#: ../../c-api/call.rst:302
488501
msgid "The types of *name* and *format* were changed from ``char *``."
@@ -494,6 +507,9 @@ msgid ""
494507
"`PyObject *` arguments. The arguments are provided as a variable number of "
495508
"parameters followed by *NULL*."
496509
msgstr ""
510+
"呼び出し可能な Python オブジェクト *callable* を可変数個の :c:expr:`PyObject "
511+
"*` 引数とともに呼び出します。引数列は末尾に *NULL* がついた可変数個のパラメタ"
512+
"として与えます。"
497513

498514
#: ../../c-api/call.rst:315
499515
msgid ""
@@ -508,6 +524,10 @@ msgid ""
508524
"number of :c:expr:`PyObject *` arguments. The arguments are provided as a "
509525
"variable number of parameters followed by *NULL*."
510526
msgstr ""
527+
"Python オブジェクト *obj* のメソッドを呼び出します、メソッド名は Python 文字"
528+
"列オブジェクト *name* で与えます。可変数個の :c:expr:`PyObject *` 引数と共に"
529+
"呼び出されます. 引数列は末尾に *NULL* がついた可変数個のパラメタとして与えま"
530+
"す。"
511531

512532
#: ../../c-api/call.rst:332
513533
msgid ""

c-api/mapping.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ msgid ""
4242
"determine what type of keys the class supports. This function always "
4343
"succeeds."
4444
msgstr ""
45+
"オブジェクトがマップ型プロトコルを提供しているか、スライスをサポートしている"
46+
"場合は ``1`` を、そうでない場合は ``0`` を返します。\n"
47+
":meth:`__getitem__` メソッドを持つ Python クラスについては ``1`` を返すのに注"
48+
"意してください。そうなる理由は、一般的にはクラスがどの種類のキーをサポートし"
49+
"ているかを判別するのが不可能だからです。\n"
50+
"この関数は常に成功します。"
4551

4652
#: ../../c-api/mapping.rst:25
4753
msgid ""

c-api/number.po

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ msgid ""
8686
"point value when passed two integers. This is the equivalent of the Python "
8787
"expression ``o1 / o2``."
8888
msgstr ""
89+
"成功すると、数学的な *o1* の *o2* による除算値に対する妥当な近似 (reasonable "
90+
"approximation) を返し、失敗すると ``NULL`` を返します。全ての実数を 2 を基数"
91+
"として表現するのは不可能なため、二進の浮動小数点数は \"近似値\" しか表現でき"
92+
"ません。このため、戻り値も近似になります。この関数に二つの整数を渡した際、浮"
93+
"動小数点の値を返すことがあります。Python の式 ``o1 / o2`` と同じです。"
8994

9095
#: ../../c-api/number.rst:61
9196
msgid ""
@@ -249,6 +254,12 @@ msgid ""
249254
"*o1* supports it. This is the equivalent of the Python statement ``o1 /= "
250255
"o2``."
251256
msgstr ""
257+
"成功すると、数学的な *o1* の *o2* による除算値に対する妥当な近似 (reasonable "
258+
"approximation) を返し、失敗すると ``NULL`` を返します。全ての実数を 2 を基数"
259+
"として表現するのは不可能なため、二進の浮動小数点数は \"近似値\" しか表現でき"
260+
"ません。このため、戻り値も近似になります。この関数に二つの整数を渡した際、浮"
261+
"動小数点の値を返すことがあります。*o1* が *in-place* 演算をサポートする場合、"
262+
"in-place 演算を行います。Python の文 ``o1 /= o2`` と同じです。"
252263

253264
#: ../../c-api/number.rst:188
254265
msgid ""
@@ -378,6 +389,8 @@ msgid ""
378389
"interpreted as an integer. If the call fails, an exception is raised and "
379390
"``-1`` is returned."
380391
msgstr ""
392+
"*o* を整数として解釈可能だった場合、:c:type:`Py_ssize_t` 型の値に変換して返し"
393+
"ます。呼び出しが失敗したら、例外が送出され、 ``-1`` が返されます。"
381394

382395
#: ../../c-api/number.rst:279
383396
msgid ""
@@ -388,10 +401,19 @@ msgid ""
388401
"exception is cleared and the value is clipped to ``PY_SSIZE_T_MIN`` for a "
389402
"negative integer or ``PY_SSIZE_T_MAX`` for a positive integer."
390403
msgstr ""
404+
"もし *o* がPythonのintに変換できたのに、:c:type:`Py_ssize_t` への変換が :exc:"
405+
"`OverflowError` になる場合は、 *exc* 引数で渡された型 (普通は :exc:"
406+
"`IndexError` か :exc:`OverflowError`) の例外を送出します。もし、 *exc* が "
407+
"``NULL`` なら、例外はクリアされて、値が負の場合は ``PY_SSIZE_T_MIN`` へ、正の"
408+
"場合は ``PY_SSIZE_T_MAX`` へと制限されます。"
391409

392410
#: ../../c-api/number.rst:289
393411
msgid ""
394412
"Returns ``1`` if *o* is an index integer (has the ``nb_index`` slot of the "
395413
"``tp_as_number`` structure filled in), and ``0`` otherwise. This function "
396414
"always succeeds."
397415
msgstr ""
416+
"*o* がインデックス整数である場合 (``tp_as_number`` 構造体の ``nb_index`` ス"
417+
"ロットが埋まっている場合) に ``1`` を返し、そうでない場合に ``0`` を返しま"
418+
"す。\n"
419+
"この関数は常に成功します。"

c-api/object.po

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ msgid ""
152152
"If *v* is ``NULL``, the attribute is deleted, but this feature is deprecated "
153153
"in favour of using :c:func:`PyObject_DelAttrString`."
154154
msgstr ""
155-
"*v* が ``NULL`` のとき、アトリビュートは削除されます。この機能は :c:func:"
156-
"`PyObject_DelAttrString` のため、非推奨となっています。"
155+
"*v* が ``NULL`` の場合は属性が削除されますが、この機能は非推奨であり :c:func:"
156+
"`PyObject_DelAttrString` を使うのが望ましいです。"
157157

158158
#: ../../c-api/object.rst:102
159159
msgid ""
@@ -392,6 +392,8 @@ msgid ""
392392
"The return type is now Py_hash_t. This is a signed integer the same size "
393393
"as :c:type:`Py_ssize_t`."
394394
msgstr ""
395+
"返り値の型が Py_hash_t になりました。この型は、 :c:type:`Py_ssize_t` と同じサ"
396+
"イズをもつ符号付き整数です。"
395397

396398
#: ../../c-api/object.rst:266
397399
msgid ""
@@ -433,6 +435,12 @@ msgid ""
433435
"which returns a pointer of type :c:expr:`PyTypeObject*`, except when the "
434436
"incremented reference count is needed."
435437
msgstr ""
438+
"*o* が ``NULL`` でない場合、オブジェクト *o* のオブジェクト型に相当する型オブ"
439+
"ジェクトを返します。失敗すると :exc:`SystemError` を送出して ``NULL`` を返し"
440+
"ます。 Python の式 ``type(o)`` と同じです。 この関数は戻り値の参照カウントを"
441+
"インクリメントします。参照カウントのインクリメントが必要でない限り、:c:expr:"
442+
"`PyTypeObject*` 型のポインタを返す :c:func:`Py_TYPE()` 関数の代わりに使う理由"
443+
"は全くありません。"
436444

437445
#: ../../c-api/object.rst:301
438446
msgid ""
@@ -459,6 +467,10 @@ msgid ""
459467
"equivalent to the Python expression ``operator.length_hint(o, "
460468
"defaultvalue)``."
461469
msgstr ""
470+
"オブジェクト *o* の概算の長さを返します。\n"
471+
"最初に実際の長さを、次に :meth:`~object.__length_hint__` を使って概算の長さ"
472+
"を、そして最後にデフォルトの値を返そうとします。\n"
473+
"この関数は Python の式 ``operator.length_hint(o, defaultvalue)`` と同じです。"
462474

463475
#: ../../c-api/object.rst:327
464476
msgid ""

c-api/sequence.po

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ msgid ""
3434
"general it is impossible to determine what type of keys the class supports. "
3535
"This function always succeeds."
3636
msgstr ""
37+
"オブジェクトがシーケンス型プロトコルを提供している場合は ``1`` を、そうでない"
38+
"場合は ``0`` を返します。\n"
39+
":meth:`__getitem__` メソッドを持つ Python クラスについては、それらが :class:"
40+
"`dict` のサブクラスでない限り、 ``1`` を返すのに注意してください。そうなる理"
41+
"由は、一般的にはクラスがどの種類のキーをサポートしているかを判別するのが不可"
42+
"能だからです。 \n"
43+
"この関数は常に成功します。"
3744

3845
#: ../../c-api/sequence.rst:23
3946
msgid ""
@@ -114,6 +121,8 @@ msgid ""
114121
"If *v* is ``NULL``, the element is deleted, but this feature is deprecated "
115122
"in favour of using :c:func:`PySequence_DelItem`."
116123
msgstr ""
124+
"*v* が ``NULL`` の場合はその要素が削除されますが、この機能は非推奨であり、 :"
125+
"c:func:`PyObject_DelAttr` を使うのが望ましいです。"
117126

118127
#: ../../c-api/sequence.rst:78
119128
msgid ""
@@ -230,6 +239,10 @@ msgid ""
230239
"`PySequence_Fast_GET_SIZE` is faster because it can assume *o* is a list or "
231240
"tuple."
232241
msgstr ""
242+
"*o* が ``NULL`` でなく、 :c:func:`PySequence_Fast` が返したオブジェクトである"
243+
"と仮定して、 *o* の長さを返します。 *o* のサイズは :c:func:`PySequence_Size` "
244+
"を呼び出しても得られますが、 :c:func:`PySequence_Fast_GET_SIZE` の方が *o* を"
245+
"リストかタプルであると仮定して処理するため、より高速です。"
233246

234247
#: ../../c-api/sequence.rst:157
235248
msgid ""

c-api/type.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ msgid ""
6363
"flag bits are guaranteed to be stable across Python releases, but access to :"
6464
"c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API."
6565
msgstr ""
66+
"*type* のメンバーである :c:member:`~PyTypeObject.tp_flags` を返します。この関"
67+
"数は基本的に ``Py_LIMITED_API`` を定義して使うことを想定しています。それぞれ"
68+
"のフラグはpythonの異なるリリースで安定していることが保証されていますが、 :c:"
69+
"member:`~PyTypeObject.tp_flags` 自体は限定されたAPIの一部ではありません。"
6670

6771
#: ../../c-api/type.rst:49
6872
msgid "The return type is now ``unsigned long`` rather than ``long``."

0 commit comments

Comments
 (0)