11
11
# Inada Naoki <songofacandy@gmail.com>, 2017
12
12
# Osamu NAKAMURA, 2018
13
13
# 永田 大和 <gey3933@gmail.com>, 2019
14
- # tomo,2019
14
+ # tomo,2020
15
15
#
16
16
#, fuzzy
17
17
msgid ""
@@ -20,7 +20,7 @@ msgstr ""
20
20
"Report-Msgid-Bugs-To :\n "
21
21
"POT-Creation-Date :2020-01-01 12:19+0000\n "
22
22
"PO-Revision-Date :2017-02-16 17:33+0000\n "
23
- "Last-Translator :tomo,2019 \n "
23
+ "Last-Translator :tomo,2020 \n "
24
24
"Language-Team :Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
25
25
"MIME-Version :1.0\n "
26
26
"Content-Type :text/plain; charset=UTF-8\n "
@@ -122,6 +122,10 @@ msgid ""
122
122
"object's :c:member:`PyBufferProcs.bf_releasebuffer` field is ``NULL``, which"
123
123
" disallows mutable objects such as :class:`bytearray`."
124
124
msgstr ""
125
+ "いくつかのフォーマットは読み込み専用の :term:`bytes-like オブジェクト <bytes-like object>` "
126
+ "を必要とし、バッファ構造体の代わりにポインタをセットします。それらは、オブジェクトの "
127
+ ":c:member:`PyBufferProcs.bf_releasebuffer` フィールドが ``NULL`` "
128
+ "であることをチェックして動きます。これは :class:`bytearray` などの変更可能オブジェクトを禁止します。"
125
129
126
130
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:58
127
131
msgid ""
@@ -221,6 +225,8 @@ msgid ""
221
225
"Like ``s``, but the Python object may also be ``None``, in which case the C "
222
226
"pointer is set to ``NULL``."
223
227
msgstr ""
228
+ "``s`` に似ていますが、Python オブジェクトは ``None`` でもよく、その場合には C のポインタは ``NULL`` "
229
+ "にセットされます。"
224
230
225
231
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:106
226
232
msgid ""
@@ -233,6 +239,8 @@ msgid ""
233
239
"Like ``s*``, but the Python object may also be ``None``, in which case the "
234
240
"``buf`` member of the :c:type:`Py_buffer` structure is set to ``NULL``."
235
241
msgstr ""
242
+ "``s*`` と同じですが、 Python の ``None`` オブジェクトを受け取ることができます。その場合、 "
243
+ ":c:type:`Py_buffer` 構造体の ``buf`` メンバーは ``NULL`` になります。"
236
244
237
245
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:110
238
246
msgid ""
@@ -247,6 +255,8 @@ msgid ""
247
255
"Like ``s#``, but the Python object may also be ``None``, in which case the C"
248
256
" pointer is set to ``NULL``."
249
257
msgstr ""
258
+ "``s#`` に似ていますが、Python オブジェクトは ``None`` でもよく、その場合には C のポインタは ``NULL`` "
259
+ "にセットされます。"
250
260
251
261
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:120
252
262
msgid "``y`` (read-only :term:`bytes-like object`) [const char\\ *]"
@@ -373,6 +383,8 @@ msgid ""
373
383
"Like ``u``, but the Python object may also be ``None``, in which case the "
374
384
":c:type:`Py_UNICODE` pointer is set to ``NULL``."
375
385
msgstr ""
386
+ "``u`` に似ていますが、Python オブジェクトは ``None`` でもよく、その場合には :c:type:`Py_UNICODE` ポインタは"
387
+ " ``NULL`` にセットされます。"
376
388
377
389
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:181
378
390
msgid "``Z#`` (:class:`str` or ``None``) [const Py_UNICODE\\ *, int]"
@@ -383,6 +395,8 @@ msgid ""
383
395
"Like ``u#``, but the Python object may also be ``None``, in which case the "
384
396
":c:type:`Py_UNICODE` pointer is set to ``NULL``."
385
397
msgstr ""
398
+ "``u#`` に似ていますが、 Python オブジェクトは ``None`` でもよく、その場合には :c:type:`Py_UNICODE` "
399
+ "ポインタは ``NULL`` にセットされます。"
386
400
387
401
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:186
388
402
msgid "``U`` (:class:`str`) [PyObject\\ *]"
@@ -436,6 +450,10 @@ msgid ""
436
450
"argument text. The text will be encoded in the encoding specified by the "
437
451
"first argument."
438
452
msgstr ""
453
+ "この書式には二つの引数が必要です。一つ目は入力にのみ用いられ、 NUL で終端されたエンコード名文字列を指す :c:type:`const "
454
+ "char\\ *` 型または、 ``'utf-8'`` が使われることを表す ``NULL`` でなければなりません。指定したエンコード名を Python"
455
+ " が理解できない場合には例外を送出します。第二の引数は :c:type:`char\\ *\\ *` でなければなりません; "
456
+ "この引数が参照しているポインタの値は、引数に指定したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。"
439
457
440
458
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:206
441
459
msgid ""
@@ -494,6 +512,12 @@ msgid ""
494
512
"The third argument must be a pointer to an integer; the referenced integer "
495
513
"will be set to the number of bytes in the output buffer."
496
514
msgstr ""
515
+ "この書式には三つの引数が必要です。一つ目は入力にのみ用いられ、 NUL で終端されたエンコード名文字列を指す :c:type:`const "
516
+ "char\\ *` 型か ``NULL`` でなければなりません。 ``NULL`` の場合には ``'utf-8'`` "
517
+ "を使います。指定したエンコード名を Python が理解できない場合には例外を送出します。第二の引数は :c:type:`char\\ *\\ *` "
518
+ "でなければなりません; "
519
+ "この引数が参照しているポインタの値は、引数に指定したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。第三の引数は整数へのポインタでなければなりません;"
520
+ " ポインタが参照している整数の値は出力バッファ内のバイト数にセットされます。"
497
521
498
522
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:231
499
523
msgid "There are two modes of operation:"
@@ -507,6 +531,10 @@ msgid ""
507
531
"responsible for calling :c:func:`PyMem_Free` to free the allocated buffer "
508
532
"after usage."
509
533
msgstr ""
534
+ "*\\ *buffer* が ``NULL`` "
535
+ "ポインタを指している場合、関数は必要なサイズのバッファを確保し、そのバッファにエンコード後のデータをコピーして、 *\\ *buffer* "
536
+ "がこの新たに確保された記憶領域を指すように変更します。呼び出し側には、確保されたバッファを使い終わった後に :c:func:`PyMem_Free` "
537
+ "で解放する責任があります。"
510
538
511
539
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:238
512
540
msgid ""
@@ -516,6 +544,10 @@ msgid ""
516
544
"will then copy the encoded data into the buffer and NUL-terminate it. If "
517
545
"the buffer is not large enough, a :exc:`ValueError` will be set."
518
546
msgstr ""
547
+ "*\\ *buffer* が非 ``NULL`` のポインタ (すでにメモリ確保済みのバッファ) を指している場合、 "
548
+ ":c:func:`PyArg_ParseTuple` はこのメモリ位置をバッファとして用い、 *\\ *buffer_length* "
549
+ "の初期値をバッファサイズとして用います。 PyArg_ParseTuple は次にエンコード済みのデータをバッファにコピーして、NUL "
550
+ "で終端します。バッファの大きさが足りなければ :exc:`ValueError` がセットされます。"
519
551
520
552
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:244
521
553
msgid ""
@@ -726,6 +758,9 @@ msgid ""
726
758
" program thus receives the actual object that was passed. The object's "
727
759
"reference count is not increased. The pointer stored is not ``NULL``."
728
760
msgstr ""
761
+ "Python オブジェクトを (一切変換を行わずに) C の Python オブジェクト型ポインタに保存します。これにより、C "
762
+ "プログラムは実際のオブジェクトを受け渡しされます。オブジェクトの参照カウントは増加しません。保存されるポインタが ``NULL`` "
763
+ "になることはありません。"
729
764
730
765
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:327
731
766
msgid "``O!`` (object) [*typeobject*, PyObject\\ *]"
@@ -781,6 +816,9 @@ msgid ""
781
816
"call, the *object* parameter will be ``NULL``; *address* will have the same "
782
817
"value as in the original call."
783
818
msgstr ""
819
+ "もし *converter* が ``Py_CLEANUP_SUPPORTED`` "
820
+ "を返すと、引数のパースが失敗した際に、コンバーターをもう一度呼び出し、すでに割り当てたメモリを開放するチャンスを与えます。二度目の呼び出しでは "
821
+ "*object* 引数は ``NULL`` になり、*address* は最初の呼び出しと同じ値になります。"
784
822
785
823
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:351
786
824
msgid "``Py_CLEANUP_SUPPORTED`` was added."
@@ -956,6 +994,8 @@ msgid ""
956
994
"on success; on failure, it returns false and raises the appropriate "
957
995
"exception."
958
996
msgstr ""
997
+ "位置引数とキーワード引数の両者を取る関数の引数を解釈します。 *keywords* 引数は ``NULL`` で終端されたキーワード名の配列です。\n"
998
+ "空の名前は :ref:`位置引数のみ <positional-only_parameter>` を示します。成功した場合、真を返します。失敗した場合は偽を返し、また適切な例外を発生させます。"
959
999
960
1000
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:445
961
1001
msgid ""
@@ -1045,6 +1085,9 @@ msgid ""
1045
1085
"Returns the value or ``NULL`` in the case of an error; an exception will be "
1046
1086
"raised if ``NULL`` is returned."
1047
1087
msgstr ""
1088
+ ":c:func:`PyArg_Parse\\ *` "
1089
+ "ファミリの関数が受け取るのと似た形式の書式文字列および値列に基づいて、新たな値を生成します。生成した値を返します。エラーの場合には ``NULL`` "
1090
+ "を返します; ``NULL`` を返す場合、例外を送出するでしょう。"
1048
1091
1049
1092
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:526
1050
1093
msgid ""
@@ -1103,6 +1146,8 @@ msgid ""
1103
1146
"Convert a null-terminated C string to a Python :class:`str` object using "
1104
1147
"``'utf-8'`` encoding. If the C string pointer is ``NULL``, ``None`` is used."
1105
1148
msgstr ""
1149
+ "null終端された C 文字列を、 ``'utf-8'`` エンコーディングを用いて、 Python :class:`str` "
1150
+ "オブジェクトに変換します。もし C 文字列ポインタが ``NULL`` の場合、 ``None`` になります。"
1106
1151
1107
1152
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:555
1108
1153
msgid "``s#`` (:class:`str` or ``None``) [const char\\ *, int]"
@@ -1114,6 +1159,8 @@ msgid ""
1114
1159
"``'utf-8'`` encoding. If the C string pointer is ``NULL``, the length is "
1115
1160
"ignored and ``None`` is returned."
1116
1161
msgstr ""
1162
+ "C 文字列とその長さを ``'utf-8'`` エンコーディングを使って Python :class:`str` オブジェクトに変換します。C "
1163
+ "文字列ポインタが ``NULL`` の場合、長さは無視され、 ``None`` になります。"
1117
1164
1118
1165
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:559
1119
1166
msgid "``y`` (:class:`bytes`) [const char\\ *]"
@@ -1124,6 +1171,8 @@ msgid ""
1124
1171
"This converts a C string to a Python :class:`bytes` object. If the C string"
1125
1172
" pointer is ``NULL``, ``None`` is returned."
1126
1173
msgstr ""
1174
+ "C 文字列をPython :class:`bytes` オブジェクトに変換します。もしC 文字列ポインタが ``NULL`` "
1175
+ "だった場合、``None`` を返します。"
1127
1176
1128
1177
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:563
1129
1178
msgid "``y#`` (:class:`bytes`) [const char\\ *, int]"
@@ -1134,6 +1183,8 @@ msgid ""
1134
1183
"This converts a C string and its lengths to a Python object. If the C "
1135
1184
"string pointer is ``NULL``, ``None`` is returned."
1136
1185
msgstr ""
1186
+ "これは C 文字列とその長さから Python オブジェクトに変換します。C 文字列ポインタが ``NULL`` の場合、長さは無視され "
1187
+ "``None`` になります。"
1137
1188
1138
1189
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:566
1139
1190
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:582
@@ -1159,6 +1210,8 @@ msgid ""
1159
1210
"UCS-4) data to a Python Unicode object. If the Unicode buffer pointer is "
1160
1211
"``NULL``, ``None`` is returned."
1161
1212
msgstr ""
1213
+ "null 終端された Unicode (UTF-16 または UCS-4) データの :c:type:`wchar_t` バッファから Python "
1214
+ "Unicode オブジェクトに変換します。 Unicode バッファポインタが ``NULL`` の場合、 ``None`` になります。"
1162
1215
1163
1216
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:579
1164
1217
msgid "``u#`` (:class:`str`) [const wchar_t\\ *, int]"
@@ -1170,6 +1223,8 @@ msgid ""
1170
1223
"Unicode object. If the Unicode buffer pointer is ``NULL``, the length is "
1171
1224
"ignored and ``None`` is returned."
1172
1225
msgstr ""
1226
+ "Unicode (UTF-16 または UCS-4) データのバッファとその長さから Python Unicode オブジェクトに変換します。 "
1227
+ "Unicode バッファポインタが ``NULL`` の場合、長さは無視され ``None`` になります。"
1173
1228
1174
1229
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:582
1175
1230
msgid "``U`` (:class:`str` or ``None``) [const char\\ *]"
@@ -1270,6 +1325,10 @@ msgid ""
1270
1325
"return ``NULL`` but won't raise an exception. If no exception has been "
1271
1326
"raised yet, :exc:`SystemError` is set."
1272
1327
msgstr ""
1328
+ "Python オブジェクトを手を加えずに渡します (ただし、参照カウントは 1 インクリメントします)。渡したオブジェクトが ``NULL`` "
1329
+ "ポインタの場合、この引数を生成するのに使った何らかの呼び出しがエラーになったのが原因であると仮定して、例外をセットします。従ってこのとき "
1330
+ ":c:func:`Py_BuildValue` は ``NULL`` を返しますが例外は送出しません。例外をまだ送出していなければ "
1331
+ ":exc:`SystemError` をセットします。"
1273
1332
1274
1333
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:646
1275
1334
msgid "``S`` (object) [PyObject\\ *]"
@@ -1299,6 +1358,9 @@ msgid ""
1299
1358
":c:type:`void\\ *`) as its argument and should return a\" new\" Python "
1300
1359
"object, or ``NULL`` if an error occurred."
1301
1360
msgstr ""
1361
+ "*anything* を *converter* 関数を介して Python オブジェクトに変換します。この関数は *anything* "
1362
+ "(:c:type:`void\\ *` と互換の型でなければなりません) を引数にして呼び出され、\" 新たな\" オブジェクトを返すか、失敗した場合には"
1363
+ " ``NULL`` を返すようにしなければなりません。"
1302
1364
1303
1365
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:660
1304
1366
msgid ""
@@ -1331,7 +1393,7 @@ msgstr "C の値からなる配列を Python の辞書に変換します。一
1331
1393
msgid ""
1332
1394
"If there is an error in the format string, the :exc:`SystemError` exception "
1333
1395
"is set and ``NULL`` returned."
1334
- msgstr ""
1396
+ msgstr "書式文字列に関するエラーが生じると、 :exc:`SystemError` 例外をセットして ``NULL`` を返します。 "
1335
1397
1336
1398
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:675
1337
1399
msgid ""