12
12
# Osamu NAKAMURA, 2018
13
13
14
14
# tomo, 2020
15
+ # Mikami Akiko, 2021
15
16
#
16
17
#, fuzzy
17
18
msgid ""
@@ -20,7 +21,7 @@ msgstr ""
20
21
"Report-Msgid-Bugs-To : \n "
21
22
"POT-Creation-Date : 2021-01-01 05:02+0000\n "
22
23
"PO-Revision-Date : 2017-02-16 17:33+0000\n "
23
- "Last-Translator : tomo, 2020 \n "
24
+ "Last-Translator : Mikami Akiko, 2021 \n "
24
25
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
25
26
"MIME-Version : 1.0\n "
26
27
"Content-Type : text/plain; charset=UTF-8\n "
@@ -313,6 +314,8 @@ msgid ""
313
314
"attempting any conversion. Raises :exc:`TypeError` if the object is not a "
314
315
"bytes object. The C variable may also be declared as :c:type:`PyObject*`."
315
316
msgstr ""
317
+ "Pythonオブジェクトとして、 :class:`bytes` オブジェクトを要求し、いかなる変換も行いません。オブジェクトが bytes "
318
+ "オブジェクトでなければ、 :exc:`TypeError` を送出します。C 変数は :c:type:`PyObject*` と宣言しても構いません。"
316
319
317
320
#: ../../c-api/arg.rst:139
318
321
msgid "``Y`` (:class:`bytearray`) [PyByteArrayObject \\ *]"
@@ -325,6 +328,9 @@ msgid ""
325
328
":class:`bytearray` object. The C variable may also be declared as "
326
329
":c:type:`PyObject*`."
327
330
msgstr ""
331
+ "Python オブジェクトとして :class:`bytearray` オブジェクトを要求し、いかなる変換もおこないません。 もしオブジェクトが "
332
+ ":class:`bytearray` でなければ、 :exc:`TypeError` を送出します。C 変数は :c:type:`PyObject*` "
333
+ "として宣言しても構いません。"
328
334
329
335
#: ../../c-api/arg.rst:156
330
336
msgid "``u`` (:class:`str`) [const Py_UNICODE \\ *]"
@@ -408,6 +414,9 @@ msgid ""
408
414
"conversion. Raises :exc:`TypeError` if the object is not a Unicode object."
409
415
" The C variable may also be declared as :c:type:`PyObject*`."
410
416
msgstr ""
417
+ "Python オブジェクトとして Unicode オブジェクトを要求し、いかなる変換も行いません。オブジェクトが Unicode "
418
+ "オブジェクトではない場合、 :exc:`TypeError` が送出されます。C変数は :c:type:`PyObject*` "
419
+ "として宣言しても構いません。"
411
420
412
421
#: ../../c-api/arg.rst:192
413
422
msgid "``w*`` (read-write :term:`bytes-like object`) [Py_buffer]"
@@ -446,6 +455,10 @@ msgid ""
446
455
"references will be set to a buffer with the contents of the argument text. "
447
456
"The text will be encoded in the encoding specified by the first argument."
448
457
msgstr ""
458
+ "この書式には二つの引数が必要です。一つ目は入力にのみ用いられ、 NUL で終端されたエンコード名文字列を指す :c:type:`const char*`"
459
+ " 型または、 ``'utf-8'`` が使われることを表す ``NULL`` でなければなりません。指定したエンコード名を Python "
460
+ "が理解できない場合には例外を送出します。第二の引数は :c:type:`char**` でなければなりません; "
461
+ "この引数が参照しているポインタの値は、引数に指定したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。"
449
462
450
463
#: ../../c-api/arg.rst:206
451
464
msgid ""
@@ -504,6 +517,12 @@ msgid ""
504
517
"The third argument must be a pointer to an integer; the referenced integer "
505
518
"will be set to the number of bytes in the output buffer."
506
519
msgstr ""
520
+ "この書式には三つの引数が必要です。一つ目は入力にのみ用いられ、 NUL で終端されたエンコード名文字列を指す :c:type:`const "
521
+ "char\\ *` 型か ``NULL`` でなければなりません。 ``NULL`` の場合には ``'utf-8'`` "
522
+ "を使います。指定したエンコード名を Python が理解できない場合には例外を送出します。第二の引数は :c:type:`char**` "
523
+ "でなければなりません; "
524
+ "この引数が参照しているポインタの値は、引数に指定したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。第三の引数は整数へのポインタでなければなりません;"
525
+ " ポインタが参照している整数の値は出力バッファ内のバイト数にセットされます。"
507
526
508
527
#: ../../c-api/arg.rst:231
509
528
msgid "There are two modes of operation:"
@@ -748,6 +767,10 @@ msgid ""
748
767
"which the object pointer is stored. If the Python object does not have the "
749
768
"required type, :exc:`TypeError` is raised."
750
769
msgstr ""
770
+ "Python オブジェクトを C の Python オブジェクト型ポインタに保存します。 ``O`` に似ていますが、二つの C の引数をとります: "
771
+ "一つ目の引数は Python の型オブジェクトへのアドレスで、二つ目の引数はオブジェクトへのポインタが保存されている "
772
+ "(:c:type:`PyObject*` の) C の変数へのアドレスです。Python オブジェクトが指定した型ではない場合、 "
773
+ ":exc:`TypeError` を送出します。"
751
774
752
775
#: ../../c-api/arg.rst:352 ../../c-api/arg.rst:657
753
776
msgid "``O&`` (object) [*converter*, *anything*]"
@@ -760,6 +783,9 @@ msgid ""
760
783
" of a C variable (of arbitrary type), converted to :c:type:`void *`. The "
761
784
"*converter* function in turn is called as follows::"
762
785
msgstr ""
786
+ "Python オブジェクトを *converter* 関数を介して C の変数に変換します。二つの引数をとります: 一つ目は関数で、二つ目は "
787
+ "(任意の型の) C 変数へのアドレスを :c:type:`void *` 型に変換したものです。 *converter* "
788
+ "は以下のようにして呼び出されます::"
763
789
764
790
#: ../../c-api/arg.rst:339
765
791
msgid ""
@@ -770,6 +796,9 @@ msgid ""
770
796
"*converter* function should raise an exception and leave the content of "
771
797
"*address* unmodified."
772
798
msgstr ""
799
+ "ここで *object* は変換対象の Python オブジェクトで、 *address* は :c:func:`PyArg_Parse\\ *` "
800
+ "に渡した :c:type:`void*` 型の引数です。戻り値 *status* は変換に成功した際に ``1``,失敗した場合には ``0`` "
801
+ "になります。変換に失敗した場合、 *converter* 関数は *address* の内容を変更せずに例外を送出しなくてはなりません。"
773
802
774
803
#: ../../c-api/arg.rst:345
775
804
msgid ""
@@ -1012,6 +1041,14 @@ msgid ""
1012
1041
"returns true on success and false if *args* is not a tuple or contains the "
1013
1042
"wrong number of elements; an exception will be set if there was a failure."
1014
1043
msgstr ""
1044
+ "パラメータ取得を簡単にした形式で、引数の型を指定する書式文字列を使いません。パラメタの取得にこの手法を使う関数は、関数宣言テーブル、またはメソッド宣言テーブル内で"
1045
+ " :const:`METH_VARARGS` として宣言しなければなりません。実引数の入ったタプルは *args* に渡します; "
1046
+ "このタプルは本当のタプルでなければなりません。タプルの長さは少なくとも *min* で、 *max* を超えてはなりません; *min* と *max*"
1047
+ " が等しくてもかまいません。補助引数を関数に渡さなければならず、各補助引数は :c:type:`PyObject*` "
1048
+ "変数へのポインタでなければなりません; これらの補助引数には、 *args* の値が入ります; "
1049
+ "値の参照は借用参照です。オプションのパラメタに対応する変数のうち、 *args* に指定していないものには値が入りません; "
1050
+ "呼び出し側はそれらの値を初期化しておかなければなりません。この関数は成功すると真を返し、 *args* "
1051
+ "がタプルでない場合や間違った数の要素が入っている場合に偽を返します; 何らかの失敗が起きた場合には例外をセットします。"
1015
1052
1016
1053
#: ../../c-api/arg.rst:493
1017
1054
msgid ""
@@ -1322,6 +1359,9 @@ msgid ""
1322
1359
":c:type:`void*`) as its argument and should return a \" new\" Python object, "
1323
1360
"or ``NULL`` if an error occurred."
1324
1361
msgstr ""
1362
+ "*anything* を *converter* 関数を介して Python オブジェクトに変換します。この関数は *anything* "
1363
+ "(:c:type:`void*` と互換の型でなければなりません) を引数にして呼び出され、\" 新たな\" オブジェクトを返すか、失敗した場合には "
1364
+ "``NULL`` を返すようにしなければなりません。"
1325
1365
1326
1366
#: ../../c-api/arg.rst:660
1327
1367
msgid ""
0 commit comments