8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.6\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2018-01-05 15:01+0000 \n "
11
+ "POT-Creation-Date : 2018-01-30 12:25+0900 \n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : cocoatomo, 2017\n "
14
14
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -27,38 +27,45 @@ msgid ""
27
27
"All integers are implemented as \" long\" integer objects of arbitrary size."
28
28
msgstr "すべての整数は任意の長さをもつ \" long\" 整数として実装されます。"
29
29
30
- #: ../../c-api/long.rst:15
30
+ #: ../../c-api/long.rst:13
31
+ msgid ""
32
+ "On error, most ``PyLong_As*`` APIs return ``(return type)-1`` which cannot "
33
+ "be distinguished from a number. Use :c:func:`PyErr_Occurred` to "
34
+ "disambiguate."
35
+ msgstr ""
36
+
37
+ #: ../../c-api/long.rst:18
31
38
msgid "This subtype of :c:type:`PyObject` represents a Python integer object."
32
39
msgstr "この :c:type:`PyObject` のサブタイプは整数型を表現します。"
33
40
34
- #: ../../c-api/long.rst:20
41
+ #: ../../c-api/long.rst:23
35
42
msgid ""
36
43
"This instance of :c:type:`PyTypeObject` represents the Python integer type. "
37
44
"This is the same object as :class:`int` in the Python layer."
38
45
msgstr ""
39
46
"この :c:type:`PyTypeObject` のインスタンスは Python 整数型を表現します。これは Python レイヤにおける "
40
47
":class:`int` と同じオブジェクトです。"
41
48
42
- #: ../../c-api/long.rst:26
49
+ #: ../../c-api/long.rst:29
43
50
msgid ""
44
51
"Return true if its argument is a :c:type:`PyLongObject` or a subtype of "
45
52
":c:type:`PyLongObject`."
46
53
msgstr "引数が :c:type:`PyLongObject` か :c:type:`PyLongObject` のサブタイプのときに真を返します。"
47
54
48
- #: ../../c-api/long.rst:32
55
+ #: ../../c-api/long.rst:35
49
56
msgid ""
50
57
"Return true if its argument is a :c:type:`PyLongObject`, but not a subtype "
51
58
"of :c:type:`PyLongObject`."
52
59
msgstr ""
53
60
"引数が :c:type:`PyLongObject` 型で、かつ :c:type:`PyLongObject` 型のサブタイプでないときに真を返します。"
54
61
55
- #: ../../c-api/long.rst:38
62
+ #: ../../c-api/long.rst:41
56
63
msgid ""
57
64
"Return a new :c:type:`PyLongObject` object from *v*, or *NULL* on failure."
58
65
msgstr ""
59
66
"*v* から新たな :c:type:`PyLongObject` オブジェクトを生成して返します。失敗のときには *NULL* を返します。"
60
67
61
- #: ../../c-api/long.rst:40
68
+ #: ../../c-api/long.rst:43
62
69
msgid ""
63
70
"The current implementation keeps an array of integer objects for all "
64
71
"integers between ``-5`` and ``256``, when you create an int in that range "
@@ -70,54 +77,54 @@ msgstr ""
70
77
"までの全ての整数に対する整数オブジェクトの配列を保持するようにしており、この範囲の数を生成すると、実際には既存のオブジェクトに対する参照が返るようになっています。従って、``1``"
71
78
" の値を変えることすら可能です。変えてしまった場合の Python の挙動は未定義です :-)"
72
79
73
- #: ../../c-api/long.rst:49
80
+ #: ../../c-api/long.rst:52
74
81
msgid ""
75
82
"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`,"
76
83
" or *NULL* on failure."
77
84
msgstr ""
78
85
"Cの :c:type:`unsigned long` から新たな :c:type:`PyLongObject` "
79
86
"オブジェクトを生成して返します。失敗した際には *NULL* を返します。"
80
87
81
- #: ../../c-api/long.rst:55
88
+ #: ../../c-api/long.rst:58
82
89
msgid ""
83
90
"Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or"
84
91
" *NULL* on failure."
85
92
msgstr ""
86
93
"C の :c:type:`Py_ssize_t` 型から新たな :c:type:`PyLongObject` オブジェクトを生成して返します。 "
87
94
"失敗のときには *NULL* を返します。"
88
95
89
- #: ../../c-api/long.rst:61
96
+ #: ../../c-api/long.rst:64
90
97
msgid ""
91
98
"Return a new :c:type:`PyLongObject` object from a C :c:type:`size_t`, or "
92
99
"*NULL* on failure."
93
100
msgstr ""
94
101
"C の :c:type:`size_t` 型から新たな :c:type:`PyLongObject` オブジェクトを生成して返します。 失敗のときには "
95
102
"*NULL* を返します。"
96
103
97
- #: ../../c-api/long.rst:67
104
+ #: ../../c-api/long.rst:70
98
105
msgid ""
99
106
"Return a new :c:type:`PyLongObject` object from a C :c:type:`long long`, or "
100
107
"*NULL* on failure."
101
108
msgstr ""
102
109
"C の :c:type:`long long` 型から新たな :c:type:`PyLongObject` "
103
110
"オブジェクトを生成して返します。失敗のときには *NULL* を返します。"
104
111
105
- #: ../../c-api/long.rst:73
112
+ #: ../../c-api/long.rst:76
106
113
msgid ""
107
114
"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long "
108
115
"long`, or *NULL* on failure."
109
116
msgstr ""
110
117
"C の :c:type:`unsigned long long` 型から新たな :c:type:`PyLongObject` "
111
118
"オブジェクトを生成して返します。失敗のときには *NULL* を返します。"
112
119
113
- #: ../../c-api/long.rst:79
120
+ #: ../../c-api/long.rst:82
114
121
msgid ""
115
122
"Return a new :c:type:`PyLongObject` object from the integer part of *v*, or "
116
123
"*NULL* on failure."
117
124
msgstr ""
118
125
"*v* の整数部から新たな :c:type:`PyLongObject` オブジェクトを生成して返します。失敗のときには *NULL* を返します。"
119
126
120
- #: ../../c-api/long.rst:85
127
+ #: ../../c-api/long.rst:88
121
128
msgid ""
122
129
"Return a new :c:type:`PyLongObject` based on the string value in *str*, "
123
130
"which is interpreted according to the radix in *base*. If *pend* is "
@@ -137,7 +144,7 @@ msgstr ""
137
144
"先頭の空白、基数の指定の後や数字の間にある単一のアンダースコアは無視されます。\n"
138
145
"数字が全くない場合、 :exc:`ValueError` が送出されます。"
139
146
140
- #: ../../c-api/long.rst:98
147
+ #: ../../c-api/long.rst:101
141
148
msgid ""
142
149
"Convert a sequence of Unicode digits to a Python integer value. The Unicode"
143
150
" string is first encoded to a byte string using "
@@ -148,7 +155,7 @@ msgstr ""
148
155
":c:func:`PyUnicode_EncodeDecimal` を用いてバイト文字列にエンコードされ、次に "
149
156
":c:func:`PyLong_FromString` を用いて変換されます。"
150
157
151
- #: ../../c-api/long.rst:104
158
+ #: ../../c-api/long.rst:107
152
159
msgid ""
153
160
"Deprecated since version 3.3, will be removed in version 4.0: Part of the "
154
161
"old-style Py_UNICODE API; please migrate to using "
@@ -157,15 +164,15 @@ msgstr ""
157
164
"バージョン 3.3 で非推奨、バージョン 4.0 で削除予定: 古いスタイルの Py_UNICODE API の一部です; "
158
165
"PyLong_FromUnicodeObject() を使用するように移行してください。"
159
166
160
- #: ../../c-api/long.rst:104
167
+ #: ../../c-api/long.rst:107
161
168
msgid ""
162
169
"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using "
163
170
":c:func:`PyLong_FromUnicodeObject`."
164
171
msgstr ""
165
172
"古いスタイルの :c:type:`Py_UNICODE` APIの一部です; :c:func:`PyLong_FromUnicodeObject` "
166
173
"を使用するように移行してください。"
167
174
168
- #: ../../c-api/long.rst:109
175
+ #: ../../c-api/long.rst:112
169
176
msgid ""
170
177
"Convert a sequence of Unicode digits in the string *u* to a Python integer "
171
178
"value. The Unicode string is first encoded to a byte string using "
@@ -176,15 +183,15 @@ msgstr ""
176
183
":c:func:`PyUnicode_EncodeDecimal` を用いてバイト文字列にエンコードされ、次に "
177
184
":c:func:`PyLong_FromString` を用いて変換されます。"
178
185
179
- #: ../../c-api/long.rst:119
186
+ #: ../../c-api/long.rst:122
180
187
msgid ""
181
188
"Create a Python integer from the pointer *p*. The pointer value can be "
182
189
"retrieved from the resulting value using :c:func:`PyLong_AsVoidPtr`."
183
190
msgstr ""
184
191
"ポインタ *p* から Python 整数値を生成します。ポインタの値は :c:func:`PyLong_AsVoidPtr` "
185
192
"を適用した結果から取得されます。"
186
193
187
- #: ../../c-api/long.rst:130 ../../c-api/long.rst:140
194
+ #: ../../c-api/long.rst:133 ../../c-api/long.rst:145
188
195
msgid ""
189
196
"Return a C :c:type:`long` representation of *obj*. If *obj* is not an "
190
197
"instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method "
@@ -194,13 +201,19 @@ msgstr ""
194
201
"のインスタンスでなければ、まず、その :meth:`__int__` メソッドを (もしあれば) 呼び出して、オブジェクトを "
195
202
":c:type:`PyLongObject` に変換します。"
196
203
197
- #: ../../c-api/long.rst:134 ../../c-api/long.rst:159
204
+ #: ../../c-api/long.rst:137 ../../c-api/long.rst:166
198
205
msgid ""
199
206
"Raise :exc:`OverflowError` if the value of *obj* is out of range for a "
200
207
":c:type:`long`."
201
208
msgstr "もし *obj* の値が :c:type:`long` の範囲外であれば、 :exc:`OverflowError` を送出します。"
202
209
203
- #: ../../c-api/long.rst:144
210
+ #: ../../c-api/long.rst:140 ../../c-api/long.rst:154 ../../c-api/long.rst:169
211
+ #: ../../c-api/long.rst:183 ../../c-api/long.rst:200 ../../c-api/long.rst:262
212
+ #: ../../c-api/long.rst:274
213
+ msgid "Returns -1 on error. Use :c:func:`PyErr_Occurred` to disambiguate."
214
+ msgstr ""
215
+
216
+ #: ../../c-api/long.rst:149
204
217
msgid ""
205
218
"If the value of *obj* is greater than :const:`LONG_MAX` or less than "
206
219
":const:`LONG_MIN`, set *\\ *overflow* to ``1`` or ``-1``, respectively, and "
@@ -212,7 +225,7 @@ msgstr ""
212
225
"*\\ *overflow* は ``0`` に設定されます。もし、ほかの例外が発生した場合は *\\ *overflow* が ``0`` に設定され "
213
226
"``-1`` を返します。"
214
227
215
- #: ../../c-api/long.rst:155 ../../c-api/long.rst:165
228
+ #: ../../c-api/long.rst:162 ../../c-api/long.rst:174
216
229
msgid ""
217
230
"Return a C :c:type:`long long` representation of *obj*. If *obj* is not an "
218
231
"instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method "
@@ -222,7 +235,7 @@ msgstr ""
222
235
"のインスタンスでなければ、まず、その :meth:`__int__` メソッドを (もしあれば) 呼び出して、オブジェクトを "
223
236
":c:type:`PyLongObject` に変換します。"
224
237
225
- #: ../../c-api/long.rst:169
238
+ #: ../../c-api/long.rst:178
226
239
msgid ""
227
240
"If the value of *obj* is greater than :const:`PY_LLONG_MAX` or less than "
228
241
":const:`PY_LLONG_MIN`, set *\\ *overflow* to ``1`` or ``-1``, respectively, "
@@ -234,76 +247,94 @@ msgstr ""
234
247
"*\\ *overflow* は ``0`` に設定されます。もし、ほかの例外が発生した場合は *\\ *overflow* が ``0`` に設定され "
235
248
"``-1`` を返します。"
236
249
237
- #: ../../c-api/long.rst:183
250
+ #: ../../c-api/long.rst:194
238
251
msgid ""
239
252
"Return a C :c:type:`Py_ssize_t` representation of *pylong*. *pylong* must "
240
253
"be an instance of :c:type:`PyLongObject`."
241
254
msgstr ""
242
255
"*pylong* を表す C の :c:type:`Py_ssize_t` を返します。 *pylong* は "
243
256
":c:type:`PyLongObject` のインスタンスでなければなりません。"
244
257
245
- #: ../../c-api/long.rst:186
258
+ #: ../../c-api/long.rst:197
246
259
msgid ""
247
260
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a "
248
261
":c:type:`Py_ssize_t`."
249
262
msgstr ""
250
263
"もし *pylong* の値が :c:type:`Py_ssize_t` の範囲外であれば、 :exc:`OverflowError` を送出します。"
251
264
252
- #: ../../c-api/long.rst:196
265
+ #: ../../c-api/long.rst:209
253
266
msgid ""
254
267
"Return a C :c:type:`unsigned long` representation of *pylong*. *pylong* "
255
268
"must be an instance of :c:type:`PyLongObject`."
256
269
msgstr ""
257
270
"*pylong* を表す C の :c:type:`unsigned long` を返します。 *pylong* は "
258
271
":c:type:`PyLongObject` のインスタンスでなければなりません。"
259
272
260
- #: ../../c-api/long.rst:199
273
+ #: ../../c-api/long.rst:212
261
274
msgid ""
262
275
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a "
263
276
":c:type:`unsigned long`."
264
277
msgstr ""
265
278
"もし *pylong* の値が :c:type:`unsigned long` の範囲外であれば、 :exc:`OverflowError` "
266
279
"を送出します。"
267
280
268
- #: ../../c-api/long.rst:205
281
+ #: ../../c-api/long.rst:215
282
+ msgid ""
283
+ "Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to "
284
+ "disambiguate."
285
+ msgstr ""
286
+
287
+ #: ../../c-api/long.rst:225
269
288
msgid ""
270
289
"Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an"
271
290
" instance of :c:type:`PyLongObject`."
272
291
msgstr ""
273
292
"*pylong* を表す C の :c:type:`size_t` を返します。 *pylong* は :c:type:`PyLongObject` "
274
293
"のインスタンスでなければなりません。"
275
294
276
- #: ../../c-api/long.rst:208
295
+ #: ../../c-api/long.rst:228
277
296
msgid ""
278
297
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a "
279
298
":c:type:`size_t`."
280
299
msgstr ""
281
300
"もし *pylong* の値が :c:type:`size_t` の範囲外であれば、 :exc:`OverflowError` を送出します。"
282
301
283
- #: ../../c-api/long.rst:217
302
+ #: ../../c-api/long.rst:231
303
+ msgid ""
304
+ "Returns ``(size_t)-1`` on error. Use :c:func:`PyErr_Occurred` to "
305
+ "disambiguate."
306
+ msgstr ""
307
+
308
+ #: ../../c-api/long.rst:240
284
309
msgid ""
285
310
"Return a C :c:type:`unsigned long long` representation of *pylong*. "
286
311
"*pylong* must be an instance of :c:type:`PyLongObject`."
287
312
msgstr ""
288
313
"*pylong* を表す C の :c:type:`unsigned long long` を返します。 *pylong* は "
289
314
":c:type:`PyLongObject` のインスタンスでなければなりません。"
290
315
291
- #: ../../c-api/long.rst:220
316
+ #: ../../c-api/long.rst:243
292
317
msgid ""
293
318
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for an "
294
319
":c:type:`unsigned long long`."
295
320
msgstr ""
296
321
"もし *pylong* の値が :c:type:`unsigned long long` の範囲外であれば、 :exc:`OverflowError` "
297
322
"を送出します。"
298
323
299
- #: ../../c-api/long.rst:223
324
+ #: ../../c-api/long.rst:246
325
+ msgid ""
326
+ "Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` to"
327
+ " disambiguate."
328
+ msgstr ""
329
+
330
+ #: ../../c-api/long.rst:249
300
331
msgid ""
301
332
"A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`."
302
333
msgstr ""
303
334
"負 *pylong* を指定した際に :exc:`TypeError` ではなく、 :exc:`OverflowError` "
304
335
"を送出するようになりました。"
305
336
306
- #: ../../c-api/long.rst:229
337
+ #: ../../c-api/long.rst:255
307
338
msgid ""
308
339
"Return a C :c:type:`unsigned long` representation of *obj*. If *obj* is not"
309
340
" an instance of :c:type:`PyLongObject`, first call its :meth:`__int__` "
@@ -313,15 +344,15 @@ msgstr ""
313
344
":c:type:`PyLongObject` のインスタンスでなければ、まず、その :meth:`__int__` メソッドを (もしあれば) "
314
345
"呼び出して、オブジェクトを :c:type:`PyLongObject` に変換します。"
315
346
316
- #: ../../c-api/long.rst:233
347
+ #: ../../c-api/long.rst:259
317
348
msgid ""
318
349
"If the value of *obj* is out of range for an :c:type:`unsigned long`, return"
319
350
" the reduction of that value modulo ``ULONG_MAX + 1``."
320
351
msgstr ""
321
352
"*obj* の値が :c:type:`unsigned long` の範囲から外れていた場合は、 ``ULONG_MAX + 1`` "
322
353
"を法とした剰余を返します。"
323
354
324
- #: ../../c-api/long.rst:239
355
+ #: ../../c-api/long.rst:267
325
356
msgid ""
326
357
"Return a C :c:type:`unsigned long long` representation of *obj*. If *obj* "
327
358
"is not an instance of :c:type:`PyLongObject`, first call its :meth:`__int__`"
@@ -331,30 +362,34 @@ msgstr ""
331
362
":c:type:`PyLongObject` のインスタンスでなければ、まず、その :meth:`__int__` メソッドを (もしあれば) "
332
363
"呼び出して、オブジェクトを :c:type:`PyLongObject` に変換します。"
333
364
334
- #: ../../c-api/long.rst:243
365
+ #: ../../c-api/long.rst:271
335
366
msgid ""
336
367
"If the value of *obj* is out of range for an :c:type:`unsigned long long`, "
337
368
"return the reduction of that value modulo ``PY_ULLONG_MAX + 1``."
338
369
msgstr ""
339
370
"*obj* の値が :c:type:`unsigned long long` の範囲から外れていた場合は、 ``PY_ULLONG_MAX + 1`` "
340
371
"を法とした剰余を返します。"
341
372
342
- #: ../../c-api/long.rst:249
373
+ #: ../../c-api/long.rst:279
343
374
msgid ""
344
375
"Return a C :c:type:`double` representation of *pylong*. *pylong* must be an"
345
376
" instance of :c:type:`PyLongObject`."
346
377
msgstr ""
347
378
"*pylong* を表す C の :c:type:`double` を返します。 *pylong* は :c:type:`PyLongObject` "
348
379
"のインスタンスでなければなりません。"
349
380
350
- #: ../../c-api/long.rst:252
381
+ #: ../../c-api/long.rst:282
351
382
msgid ""
352
383
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a "
353
384
":c:type:`double`."
354
385
msgstr ""
355
386
"もし *pylong* の値が :c:type:`double` の範囲外であれば、 :exc:`OverflowError` を送出します。"
356
387
357
- #: ../../c-api/long.rst:258
388
+ #: ../../c-api/long.rst:285
389
+ msgid "Returns -1.0 on error. Use :c:func:`PyErr_Occurred` to disambiguate."
390
+ msgstr ""
391
+
392
+ #: ../../c-api/long.rst:290
358
393
msgid ""
359
394
"Convert a Python integer *pylong* to a C :c:type:`void` pointer. If *pylong*"
360
395
" cannot be converted, an :exc:`OverflowError` will be raised. This is only "
@@ -364,3 +399,7 @@ msgstr ""
364
399
"Python の整数型を指す *pylong* を、 C の :c:type:`void` ポインタに変換します。 *pylong* "
365
400
"を変換できなければ、 :exc:`OverflowError` を送出します。この関数は :c:func:`PyLong_FromVoidPtr` "
366
401
"で値を生成するときに使うような :c:type:`void` ポインタ型を生成できるだけです。"
402
+
403
+ #: ../../c-api/long.rst:295
404
+ msgid "Returns NULL on error. Use :c:func:`PyErr_Occurred` to disambiguate."
405
+ msgstr ""
0 commit comments