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

Commit13b908c

Browse files
author
github-actions
committed
Merge 3.14 into 3.11
1 parentffbe803 commit13b908c

File tree

16 files changed

+434
-69
lines changed

16 files changed

+434
-69
lines changed

‎c-api/arg.po‎

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ msgstr "特に言及されていない場合、バッファーは NUL 終端さ
104104

105105
#:../../c-api/arg.rst:48
106106
msgid"There are three ways strings and buffers can be converted to C:"
107-
msgstr""
107+
msgstr"文字列とバッファをCに変換する方法は3つあります:"
108108

109109
#:../../c-api/arg.rst:50
110110
msgid""
@@ -115,13 +115,22 @@ msgid ""
115115
"call** :c:func:`PyBuffer_Release` after you have finished processing the "
116116
"data (or in any early abort case)."
117117
msgstr""
118+
"形式としては ``y*`` そして ``s*`` 埋める :c:type:`Py_buffer` 構造体。これは"
119+
"ロックします 根底 バッファ これにより、呼び出し元はその後、バッファを内部でも"
120+
"使用できるようになります:c:type:`Py_BEGIN_ALLOW_THREADS` ブロック リスクなし"
121+
"に 可変 データが再サイズ化または破壊される。その結果、**電話をかけなければな"
122+
"らない** :c:func:`PyBuffer_Release` データ処理が完了した後(または早期終了の"
123+
"場合)。"
118124

119125
#:../../c-api/arg.rst:57
120126
msgid""
121127
"The ``es``, ``es#``, ``et`` and ``et#`` formats allocate the result buffer. "
122128
"**You have to call** :c:func:`PyMem_Free` after you have finished processing "
123129
"the data (or in any early abort case)."
124130
msgstr""
131+
"その ``es``, ``es#``, ``et`` そして ``et#`` フォーマットは結果を割り当てます "
132+
"バッファ. **必ず電話をかけてください** :c:func:`PyMem_Free` データ処理が完了"
133+
"した後(または早期終了の場合)。"
125134

126135
#:../../c-api/arg.rst:63
127136
msgid""
@@ -131,6 +140,11 @@ msgid ""
131140
"corresponding Python object, and shares the lifetime of this object. You "
132141
"won't have to release any memory yourself."
133142
msgstr""
143+
"他の形式では :class:`str`または 読み出し専用 :term:`bytes-like オブジェクト"
144+
"`、例えば :class:`bytes`, および提供する ``const char *`` ポインタ その "
145+
"バッファ. この場合 バッファ「借用」されています:これは対応するPythonオブジェ"
146+
"クトによって管理され、このオブジェクトのライフサイクルを共有します。メモリを"
147+
"自分で解放する必要はありません。 "
134148

135149
#:../../c-api/arg.rst:70
136150
msgid""
@@ -139,13 +153,20 @@ msgid ""
139153
"disallows common mutable objects such as :class:`bytearray`, but also some "
140154
"read-only objects such as :class:`memoryview` of :class:`bytes`."
141155
msgstr""
156+
"以下のことを確実にするため 根底 バッファ 安全に借りることができます, 対象の :"
157+
"c:member:`PyBufferProcs.bf_releasebuffer` フィールドは必須です。 ``NULL``. こ"
158+
"れは一般的な 可変 次のようなオブジェクト :class:`bytearray`, また、いくつか"
159+
"の 読み出し専用 次のようなオブジェクト :class:`memoryview` の :class:`bytes`."
142160

143161
#:../../c-api/arg.rst:76
144162
msgid""
145163
"Besides this ``bf_releasebuffer`` requirement, there is no check to verify "
146164
"whether the input object is immutable (e.g. whether it would honor a request "
147165
"for a writable buffer, or whether another thread can mutate the data)."
148166
msgstr""
167+
"これに加えて ``bf_releasebuffer`` 要件として、入力が有効かどうかを確認する"
168+
"チェックはありません 対象は 不変 (例:請求に応じるかどうか 書き込み可能 バッ"
169+
"ファ, または、別のスレッドがデータを変更できるかどうか)。"
149170

150171
#:../../c-api/arg.rst:80
151172
msgid"``s`` (:class:`str`) [const char\\*]"
@@ -222,6 +243,11 @@ msgid ""
222243
"null bytes. Unicode objects are converted to C strings using ``'utf-8'`` "
223244
"encoding."
224245
msgstr""
246+
"のように ``s*``, ただし、それは :ref:`借用された バッファ <c-arg-borrowed-"
247+
"buffer>`. 結果は2つのC変数に格納されます。最初の変数はC文字列へのポインター、"
248+
"2つ目の変数はその長さです。文字列には埋め込まれたヌルバイトが含まれる可能性が"
249+
"あります。Unicodeオブジェクトは、C文字列に変換されます ``'utf-8'`` エンコー"
250+
"ド。"
225251

226252
#:../../c-api/arg.rst:113../../c-api/arg.rst:629
227253
msgid"``z`` (:class:`str` or ``None``) [const char\\*]"
@@ -274,6 +300,10 @@ msgid ""
274300
"objects. The bytes buffer must not contain embedded null bytes; if it does, "
275301
"a :exc:`ValueError` exception is raised."
276302
msgstr""
303+
"この形式は bytes-like Cポインタへのオブジェクトへの参照を拒否する :ref:"
304+
"`borrowed <c-arg-borrowed-buffer>` 文字列; Unicode オブジェクトは受け付けませ"
305+
"ん。 バイトバッファには埋め込みのヌルバイトを含んではいけません。もし含まれて"
306+
"いる場合 :exc:`ValueError` 例外が発生します。"
277307

278308
#:../../c-api/arg.rst:136
279309
msgid""
@@ -736,6 +766,10 @@ msgid ""
736766
"`strong reference` to the object is not created (i.e. its reference count is "
737767
"not increased). The pointer stored is not ``NULL``."
738768
msgstr""
769+
"Python オブジェクトを(変換なしで)C オブジェクトのポインターに格納します。 "
770+
"これにより、C プログラムは渡された実際のオブジェクトを受け取ります。新しい :"
771+
"term: 強参照 オブジェクトが作成されていません (すなわち、その参照カウント 増"
772+
"加しません)。その ポインタ 保存されていない ``NULL``."
739773

740774
#:../../c-api/arg.rst:323
741775
msgid"``O!`` (object) [*typeobject*, PyObject\\*]"
@@ -948,6 +982,9 @@ msgid ""
948982
"*borrowed* references; do not release them (i.e. do not decrement their "
949983
"reference count)!"
950984
msgstr""
985+
"注意:呼び出し元に渡されるPythonオブジェクトの参照はすべて*借用*された参照で"
986+
"す。これらを解放しないでください(つまり、参照カウントを減らさないでくださ"
987+
"い)!"
951988

952989
#:../../c-api/arg.rst:434
953990
msgid""
@@ -1091,12 +1128,26 @@ msgid ""
10911128
"a tuple or contains the wrong number of elements; an exception will be set "
10921129
"if there was a failure."
10931130
msgstr""
1131+
"パラメーターの取得方法のよりシンプルな形式で、使用しないもの a 書式文字列 引"
1132+
"数の型を指定する 。関数 これを使用する メソッド 彼らの パラメータ 次のように"
1133+
"宣言する必要があります :c:macro:`METH_VARARGS` に 関数 にメソッド テーブル。"
1134+
"実際のパラメーターを含むタプルは *args* として渡す必要があります。必ずタプル"
1135+
"でなければなりません。タプルの長さは、*min*以上で*max*以下でなければなりませ"
1136+
"ん。*min*と*max*は等しい場合もあります。関数には追加の引数を渡す必要があり、"
1137+
"各引数はポインターでなければならない ~へ:c:expr:`PyObject*` 変数;これらは"
1138+
"*args*の値で埋められる;これらは:term:を含む:借用参照 <borrowed "
1139+
"reference>`. *args* で指定されていないオプションパラメーターに対応する変数は"
1140+
"初期化されません。これらの変数は呼び出し元で初期化する必要があります。これ 関"
1141+
"数 成功した場合にtrueを返し、*args*がタプルでない場合または要素の数が間違って"
1142+
"いる場合にfalseを返します。失敗した場合、例外が設定されます。"
10941143

10951144
#:../../c-api/arg.rst:544
10961145
msgid""
10971146
"This is an example of the use of this function, taken from the sources for "
10981147
"the :mod:`!_weakref` helper module for weak references::"
10991148
msgstr""
1149+
"これは、この関数の使用例で、ソースコードから抜粋したものです:mod:`!_weakref`"
1150+
"弱参照用のヘルパーモジュール:: "
11001151

11011152
#:../../c-api/arg.rst:547
11021153
msgid""
@@ -1220,6 +1271,7 @@ msgstr ""
12201271
msgid""
12211272
"``s#`` (:class:`str` or ``None``) [const char\\*, :c:type:`Py_ssize_t`]"
12221273
msgstr""
1274+
"``s#`` (:class:`str` or ``None``) [const char\\*, :c:type:`Py_ssize_t`]"
12231275

12241276
#:../../c-api/arg.rst:617
12251277
msgid""
@@ -1245,7 +1297,7 @@ msgstr ""
12451297

12461298
#:../../c-api/arg.rst:625
12471299
msgid"``y#`` (:class:`bytes`) [const char\\*, :c:type:`Py_ssize_t`]"
1248-
msgstr""
1300+
msgstr"``y#`` (:class:`bytes`) [const char\\*, :c:type:`Py_ssize_t`]"
12491301

12501302
#:../../c-api/arg.rst:626
12511303
msgid""
@@ -1410,6 +1462,12 @@ msgid ""
14101462
"func:`Py_BuildValue` will return ``NULL`` but won't raise an exception. If "
14111463
"no exception has been raised yet, :exc:`SystemError` is set."
14121464
msgstr""
1465+
"Python オブジェクトをそのまま渡すものの、それに対する新しい :term:`強参照` を"
1466+
"作成する(つまり、その参照カウントが1増加します)。渡されたオブジェクトが "
1467+
"``NULL`` ポインタ, この問題は、引数を生成する呼び出しがエラーを検出し、例外を"
1468+
"設定したため発生したものと推測されます。したがって、:c:func:`Py_BuildValue` "
1469+
"戻ってきます ``NULL`` しかし、そうはならない 送出 例外。 例外がまだ発生してい"
1470+
"ない場合、:exc:`SystemError` 設定されています。"
14131471

14141472
#:../../c-api/arg.rst:717
14151473
msgid"``S`` (object) [PyObject\\*]"
@@ -1429,6 +1487,9 @@ msgid ""
14291487
"Useful when the object is created by a call to an object constructor in the "
14301488
"argument list."
14311489
msgstr""
1490+
"同じです ``O``, ただし、新しい :term:`強参照` を作成しません。オブジェクトが"
1491+
"引数リスト内のオブジェクトコンストラクターの呼び出しによって作成される場合に"
1492+
"便利です。"
14321493

14331494
#:../../c-api/arg.rst:725
14341495
msgid"``O&`` (object) [*converter*, *anything*]"

‎c-api/buffer.po‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ msgid ""
219219
"set to ``NULL`` by :c:func:`PyBuffer_Release`. The field is the equivalent "
220220
"of the return value of any standard C-API function."
221221
msgstr""
222+
"エクスポート対象オブジェクトへの新しい参照。この参照は消費者によって所有さ"
223+
"れ、自動的に解放されます(つまり、参照カウントが減少します)し、設定されます "
224+
"``NULL`` by :c:func:`PyBuffer_Release`. このフィールドは、標準のC-API関数の戻"
225+
"り値に相当します。"
222226

223227
#:../../c-api/buffer.rst:117
224228
msgid""

‎c-api/codec.po‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ msgid ""
4545
"search function is not registered, do nothing. Return 0 on success. Raise an "
4646
"exception and return -1 on error."
4747
msgstr""
48+
"コーデック検索関数の登録を解除し、レジストリのキャッシュをクリアします。 検索"
49+
"関数が登録されていない場合は何もしません。 成功したら0を返します。 エラーの場"
50+
"合は例外を送出させ、-1を返します。"
4851

4952
#:../../c-api/codec.rst:23
5053
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp