Skip to content

Commit 54e9574

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

36 files changed

+948
-40
lines changed

c-api/bytes.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ msgid ""
3131
"These functions raise :exc:`TypeError` when expecting a bytes parameter and "
3232
"called with a non-bytes parameter."
3333
msgstr ""
34+
"下記の関数は、バイトオブジェクトを期待している引数にバイトオブジェクトでない"
35+
"パラメタを指定して呼び出されると、 :exc:`TypeError` を送出します。"
3436

3537
#: ../../c-api/bytes.rst:16
3638
msgid "This subtype of :c:type:`PyObject` represents a Python bytes object."

c-api/capsule.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ msgid ""
4242
"regular import mechanism can be used to access C APIs defined in dynamically "
4343
"loaded modules."
4444
msgstr ""
45+
"この :c:type:`PyObject` のサブタイプは、任意の値を表し、C拡張モジュールから "
46+
"Pythonコードを経由して他のC言語のコードに任意の値を(:c:expr:`void*` ポインタ"
47+
"の形で)渡す必要があるときに有用です。あるモジュール内で定義されているC言語関"
48+
"数のポインタを、他のモジュールに渡してそこから呼び出せるようにするためによく"
49+
"使われます。これにより、動的にロードされるモジュールの中の C API に通常の "
50+
"import 機構を通してアクセスすることができます。"
4551

4652
#: ../../c-api/capsule.rst:27
4753
msgid "The type of a destructor callback for a capsule. Defined as::"

c-api/complex.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ msgstr ""
162162

163163
#: ../../c-api/complex.rst:118
164164
msgid "Return the real part of *op* as a C :c:expr:`double`."
165-
msgstr ""
165+
msgstr "*op* の実数部分を C の :c:expr:`double` 型で返します。"
166166

167167
#: ../../c-api/complex.rst:123
168168
msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
169-
msgstr ""
169+
msgstr "*op* の虚数部分を C の :c:expr:`double` 型で返します。"
170170

171171
#: ../../c-api/complex.rst:128
172172
msgid "Return the :c:type:`Py_complex` value of the complex number *op*."

c-api/datetime.po

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,58 +74,80 @@ msgid ""
7474
"Return true if *ob* is of type :c:data:`PyDateTime_DateType`. *ob* must not "
7575
"be ``NULL``. This function always succeeds."
7676
msgstr ""
77+
"*ob* が :c:data:`PyDateTime_DateType` の場合に真を返します。\n"
78+
"*ob* は ``NULL`` であってはなりません。この関数は常に成功します。"
7779

7880
#: ../../c-api/datetime.rst:43
7981
msgid ""
8082
"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType` or a "
8183
"subtype of :c:data:`PyDateTime_DateTimeType`. *ob* must not be ``NULL``. "
8284
"This function always succeeds."
8385
msgstr ""
86+
"*ob* が :c:data:`PyDateTime_DateTimeType` 型か :c:data:"
87+
"`PyDateTime_DateTimeType` 型のサブタイプのオブジェクトの場合に真を返します; "
88+
"*ob* は ``NULL`` であってはなりません。この関数は常に成功します。"
8489

8590
#: ../../c-api/datetime.rst:50
8691
msgid ""
8792
"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType`. *ob* must "
8893
"not be ``NULL``. This function always succeeds."
8994
msgstr ""
95+
"*ob* が :c:data:`PyDateTime_DateTimeType` の場合に真を返します。\n"
96+
"*ob* は ``NULL`` であってはなりません。この関数は常に成功します。"
9097

9198
#: ../../c-api/datetime.rst:56
9299
msgid ""
93100
"Return true if *ob* is of type :c:data:`PyDateTime_TimeType` or a subtype "
94101
"of :c:data:`PyDateTime_TimeType`. *ob* must not be ``NULL``. This function "
95102
"always succeeds."
96103
msgstr ""
104+
"*ob* が :c:data:`PyDateTime_TimeType` 型か :c:data:`PyDateTime_TimeType` 型の"
105+
"サブタイプのオブジェクトの場合に真を返します; *ob* は ``NULL`` であってはなり"
106+
"ません。この関数は常に成功します。"
97107

98108
#: ../../c-api/datetime.rst:63
99109
msgid ""
100110
"Return true if *ob* is of type :c:data:`PyDateTime_TimeType`. *ob* must not "
101111
"be ``NULL``. This function always succeeds."
102112
msgstr ""
113+
"*ob* が :c:data:`PyDateTime_TimeType` の場合に真を返します。\n"
114+
"*ob* は ``NULL`` であってはなりません。この関数は常に成功します。"
103115

104116
#: ../../c-api/datetime.rst:69
105117
msgid ""
106118
"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType` or a subtype "
107119
"of :c:data:`PyDateTime_DeltaType`. *ob* must not be ``NULL``. This "
108120
"function always succeeds."
109121
msgstr ""
122+
"*ob* が :c:data:`PyDateTime_DeltaType` 型か :c:data:`PyDateTime_DeltaType` 型"
123+
"のサブタイプのオブジェクトの場合に真を返します; *ob* は ``NULL`` であってはな"
124+
"りません。この関数は常に成功します。"
110125

111126
#: ../../c-api/datetime.rst:76
112127
msgid ""
113128
"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType`. *ob* must not "
114129
"be ``NULL``. This function always succeeds."
115130
msgstr ""
131+
"*ob* が :c:data:`PyDateTime_DeltaType` の場合に真を返します。\n"
132+
"*ob* は ``NULL`` であってはなりません。この関数は常に成功します。"
116133

117134
#: ../../c-api/datetime.rst:82
118135
msgid ""
119136
"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType` or a subtype "
120137
"of :c:data:`PyDateTime_TZInfoType`. *ob* must not be ``NULL``. This "
121138
"function always succeeds."
122139
msgstr ""
140+
"*ob* が :c:data:`PyDateTime_TZInfoType` 型か :c:data:`PyDateTime_TZInfoType` "
141+
"型のサブタイプのオブジェクトの場合に真を返します; *ob* は ``NULL`` であっては"
142+
"なりません。この関数は常に成功します。"
123143

124144
#: ../../c-api/datetime.rst:89
125145
msgid ""
126146
"Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType`. *ob* must "
127147
"not be ``NULL``. This function always succeeds."
128148
msgstr ""
149+
"*ob* が :c:data:`PyDateTime_TZInfoType` の場合に真を返します。\n"
150+
"*ob* は ``NULL`` であってはなりません。この関数は常に成功します。"
129151

130152
#: ../../c-api/datetime.rst:93
131153
msgid "Macros to create objects:"

c-api/dict.po

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,16 @@ msgid ""
4646
"Return true if *p* is a dict object or an instance of a subtype of the dict "
4747
"type. This function always succeeds."
4848
msgstr ""
49+
"*p* が辞書オブジェクトか辞書型のサブタイプのインスタンスである場合に真を返し"
50+
"ます。この関数は常に成功します。"
4951

5052
#: ../../c-api/dict.rst:30
5153
msgid ""
5254
"Return true if *p* is a dict object, but not an instance of a subtype of the "
5355
"dict type. This function always succeeds."
5456
msgstr ""
57+
"*p* が辞書オブジェクトだが辞書型のサブタイプのインスタンスでない場合に真を返"
58+
"します。この関数は常に成功します。"
5559

5660
#: ../../c-api/dict.rst:36
5761
msgid "Return a new empty dictionary, or ``NULL`` on failure."
@@ -108,6 +112,11 @@ msgid ""
108112
"``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on "
109113
"failure. This function *does not* steal a reference to *val*."
110114
msgstr ""
115+
"辞書 *p* に、 *key* をキーとして値 *val* を挿入します。\n"
116+
"*key* は :c:expr:`const char*` 型でなければなりません。\n"
117+
"キーオブジェクトは ``PyUnicode_FromString(key)`` で生成されます。\n"
118+
"成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。\n"
119+
"この関数は *val* への参照を盗み取り *ません*。"
111120

112121
#: ../../c-api/dict.rst:83
113122
msgid ""
@@ -122,6 +131,9 @@ msgid ""
122131
"*key*. If *key* is not in the dictionary, :exc:`KeyError` is raised. Return "
123132
"``0`` on success or ``-1`` on failure."
124133
msgstr ""
134+
"辞書 *p* から文字列 *key* をキーとするエントリを除去します。*key* が辞書にな"
135+
"ければ、:exc:`KeyError` を送出します。成功した場合には ``0`` を、失敗した場合"
136+
"には ``-1`` を返します。"
125137

126138
#: ../../c-api/dict.rst:98
127139
msgid ""
@@ -164,6 +176,8 @@ msgid ""
164176
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
165177
"expr:`const char*`, rather than a :c:expr:`PyObject*`."
166178
msgstr ""
179+
":c:func:`PyDict_GetItem` と同じですが、 *key* は :c:expr:`PyObject*` ではな"
180+
"く :c:expr:`const char*` で指定します。"
167181

168182
#: ../../c-api/dict.rst:123
169183
msgid ""
@@ -227,6 +241,18 @@ msgid ""
227241
"represents offsets within the internal dictionary structure, and since the "
228242
"structure is sparse, the offsets are not consecutive."
229243
msgstr ""
244+
"辞書 *p* 内の全てのキー/値のペアにわたる反復処理を行います。\n"
245+
"*ppos* が参照している :c:type:`Py_ssize_t` 型は、この関数で反復処理を開始する"
246+
"際に、最初に関数を呼び出すよりも前に ``0`` に初期化しておかなければなりませ"
247+
"ん。この関数は辞書内の各ペアを取り上げるごとに真を返し、全てのペアを取り上げ"
248+
"たことが分かると偽を返します。\n"
249+
"パラメーター *pkey* および *pvalue* には、それぞれ辞書の各々のキーと値が埋め"
250+
"られた :c:expr:`PyObject*` 変数を指すポインタか、または ``NULL`` が入りま"
251+
"す。\n"
252+
"この関数から返される参照はすべて借用参照になります。\n"
253+
"反復処理中に *ppos* を変更してはなりません。\n"
254+
"この値は内部的な辞書構造体のオフセットを表現しており、構造体はスパースなの"
255+
"で、オフセットの値に一貫性がないためです。"
230256

231257
#: ../../c-api/dict.rst:176
232258
msgid "For example::"

c-api/file.po

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ msgid ""
3737
"reporting in the interpreter; third-party code is advised to access the :mod:"
3838
"`io` APIs instead."
3939
msgstr ""
40+
"これらの API は、 Python 2 の組み込みのファイルオブジェクトの C API を最低限"
41+
"エミュレートするためのものです。それらは、標準 C ライブラリでサポートされてい"
42+
"るバッファ付き I/O (:c:expr:`FILE*`) に頼るために使われます。 Python 3 では、"
43+
"ファイルとストリームは新しい :mod:`io` モジュールを使用され、そこに OS の低レ"
44+
"ベルなバッファ付き I/O の上にいくつかの層が定義されています。下で解説されてい"
45+
"る関数は、それらの新しい API の便利な C ラッパーであり、インタプリタでの内部"
46+
"的なエラー通知に向いています; サードパーティーのコードは代わりに :mod:`io` "
47+
"の API を使うことが推奨されます。"
4048

4149
#: ../../c-api/file.rst:22
4250
msgid ""
@@ -79,6 +87,11 @@ msgid ""
7987
"integer, which is returned as the file descriptor value. Sets an exception "
8088
"and returns ``-1`` on failure."
8189
msgstr ""
90+
"*p* に関連づけられる ファイルディスクリプタを :c:expr:`int` として返します。"
91+
"オブジェクトが整数なら、その値を返します。 整数でない場合、オブジェクトに :"
92+
"meth:`~io.IOBase.fileno` メソッドがあれば呼び出します; このメソッドの返り値"
93+
"は、ファイル記述子の値として返される整数でなければなりません。失敗すると例外"
94+
"を設定して ``-1`` を返します。"
8295

8396
#: ../../c-api/file.rst:52
8497
msgid ""
@@ -114,6 +127,8 @@ msgid ""
114127
"The handler is a function of type :c:expr:`PyObject *(\\*)(PyObject *path, "
115128
"void *userData)`, where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
116129
msgstr ""
130+
"ハンドラは :c:expr:`PyObject *(\\*)(PyObject *path, void *userData)` 型の関数"
131+
"で、 *path* は :c:type:`PyUnicodeObject` であることが保証されています。"
117132

118133
#: ../../c-api/file.rst:71
119134
msgid ""

c-api/float.po

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ msgid ""
8181
"This method returns ``-1.0`` upon failure, so one should call :c:func:"
8282
"`PyErr_Occurred` to check for errors."
8383
msgstr ""
84+
"*pyfloat* の指す値を、 C の :c:expr:`double` 型表現で返します。 *pyfloat* が "
85+
"Python 浮動小数点オブジェクトではなく、かつ :meth:`__float__` メソッドを持っ"
86+
"ていれば、 *pyfloat* を浮動小数点に変換するためにこのメソッドが最初に呼ばれま"
87+
"す。\n"
88+
" ``__float__()`` が定義されていない場合は、 :meth:`__float__` にフォールバッ"
89+
"クされます。\n"
90+
"このメソッドは失敗した場合 ``-1.0`` を返します。そのため呼び出し元は :c:func:"
91+
"`PyErr_Occurred` を呼んでエラーをチェックすべきです。"
8492

8593
#: ../../c-api/float.rst:54
8694
msgid "Use :meth:`__index__` if available."
@@ -91,6 +99,8 @@ msgid ""
9199
"Return a C :c:expr:`double` representation of the contents of *pyfloat*, but "
92100
"without error checking."
93101
msgstr ""
102+
"*pyfloat* の指す値を、 C の :c:expr:`double` 型表現で返しますが、エラーチェッ"
103+
"クを行いません。"
94104

95105
#: ../../c-api/float.rst:66
96106
msgid ""
@@ -106,8 +116,12 @@ msgid ""
106116
"Return the maximum representable finite float *DBL_MAX* as C :c:expr:"
107117
"`double`."
108118
msgstr ""
119+
"float の表現できる最大限解値 *DBL_MAX* を C の :c:expr:`double` 型で返しま"
120+
"す。"
109121

110122
#: ../../c-api/float.rst:78
111123
msgid ""
112124
"Return the minimum normalized positive float *DBL_MIN* as C :c:expr:`double`."
113125
msgstr ""
126+
"float の正規化された最小の正の値 *DBL_MIN* を C の :c:expr:`double` 型で返し"
127+
"ます。"

c-api/function.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ msgid ""
106106
"This is normally a string containing the module name, but can be set to any "
107107
"other object by Python code."
108108
msgstr ""
109+
"これには普通はモジュール名の文字列が入っていますが、Python コードから他のオブ"
110+
"ジェクトをセットされることもあります。"
109111

110112
#: ../../c-api/function.rst:73
111113
msgid ""

0 commit comments

Comments
 (0)