6
6
# Translators:
7
7
# tomo, 2022
8
8
# Takeshi Nakazato, 2022
9
- # souma987, 2023
10
9
#
11
10
#, fuzzy
12
11
msgid ""
13
12
msgstr ""
14
13
"Project-Id-Version : Python 3.11\n "
15
14
"Report-Msgid-Bugs-To : \n "
16
- "POT-Creation-Date : 2023-02-17 14:14 +0000\n "
15
+ "POT-Creation-Date : 2023-02-24 14:15 +0000\n "
17
16
"PO-Revision-Date : 2021-06-28 00:55+0000\n "
18
- "Last-Translator : souma987, 2023 \n "
17
+ "Last-Translator : Takeshi Nakazato, 2022 \n "
19
18
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ "
20
19
"ja/)\n "
21
20
"MIME-Version : 1.0\n "
@@ -228,48 +227,54 @@ msgstr ""
228
227
"りに :func:`open_connection` や :func:`start_server` を使ってください。"
229
228
230
229
#: ../../library/asyncio-stream.rst:209
230
+ msgid "Read up to *n* bytes from the stream."
231
+ msgstr ""
232
+
233
+ #: ../../library/asyncio-stream.rst:211
231
234
msgid ""
232
- "Read up to *n* bytes. If *n* is not provided, or set to ``-1``, read until "
233
- "EOF and return all read bytes."
235
+ "If *n* is not provided or set to ``-1``, read until EOF, then return all "
236
+ "read :class:`bytes`. If EOF was received and the internal buffer is empty, "
237
+ "return an empty ``bytes`` object."
238
+ msgstr ""
239
+
240
+ #: ../../library/asyncio-stream.rst:216
241
+ msgid "If *n* is ``0``, return an empty ``bytes`` object immediately."
234
242
msgstr ""
235
- "最大 *n* バイト読み込みます。*n* が指定されないか ``-1`` が指定されていた場"
236
- "合 EOF になるまで読み込み、読み込んだすべてのデータを返します。"
237
243
238
- #: ../../library/asyncio-stream.rst:212
244
+ #: ../../library/asyncio-stream.rst:218
239
245
msgid ""
240
- "If EOF was received and the internal buffer is empty, return an empty "
241
- "``bytes`` object."
246
+ "If *n* is positive, return at most *n* available ``bytes`` as soon as at "
247
+ "least 1 byte is available in the internal buffer. If EOF is received before "
248
+ "any byte is read, return an empty ``bytes`` object."
242
249
msgstr ""
243
- "EOF を受信し、かつ内部バッファーが空の場合、空の ``bytes`` オブジェクトを返し"
244
- "ます。"
245
250
246
- #: ../../library/asyncio-stream.rst:217
251
+ #: ../../library/asyncio-stream.rst:225
247
252
msgid ""
248
253
"Read one line, where \" line\" is a sequence of bytes ending with ``\\ n``."
249
254
msgstr ""
250
255
"1 行読み込みます。 \" 行\" とは、``\\ n`` で終了するバイト列のシーケンスです。"
251
256
252
- #: ../../library/asyncio-stream.rst:220
257
+ #: ../../library/asyncio-stream.rst:228
253
258
msgid ""
254
259
"If EOF is received and ``\\ n`` was not found, the method returns partially "
255
260
"read data."
256
261
msgstr ""
257
262
"EOF を受信し、かつ ``\\ n`` が見つからない場合、このメソッドは部分的に読み込ん"
258
263
"だデータを返します。"
259
264
260
- #: ../../library/asyncio-stream.rst:223
265
+ #: ../../library/asyncio-stream.rst:231
261
266
msgid ""
262
267
"If EOF is received and the internal buffer is empty, return an empty "
263
268
"``bytes`` object."
264
269
msgstr ""
265
270
"EOF を受信し、かつ内部バッファーが空の場合、空の ``bytes`` オブジェクトを返し"
266
271
"ます。"
267
272
268
- #: ../../library/asyncio-stream.rst:228
273
+ #: ../../library/asyncio-stream.rst:236
269
274
msgid "Read exactly *n* bytes."
270
275
msgstr "厳密に *n* バイトのデータを読み出します。"
271
276
272
- #: ../../library/asyncio-stream.rst:230
277
+ #: ../../library/asyncio-stream.rst:238
273
278
msgid ""
274
279
"Raise an :exc:`IncompleteReadError` if EOF is reached before *n* can be "
275
280
"read. Use the :attr:`IncompleteReadError.partial` attribute to get the "
@@ -279,19 +284,19 @@ msgstr ""
279
284
"ます。部分的に読み出したデータを取得するには :attr:`IncompleteReadError."
280
285
"partial` 属性を使ってください。"
281
286
282
- #: ../../library/asyncio-stream.rst:236
287
+ #: ../../library/asyncio-stream.rst:244
283
288
msgid "Read data from the stream until *separator* is found."
284
289
msgstr "*separator* が見つかるまでストリームからデータを読み出します。"
285
290
286
- #: ../../library/asyncio-stream.rst:238
291
+ #: ../../library/asyncio-stream.rst:246
287
292
msgid ""
288
293
"On success, the data and separator will be removed from the internal buffer "
289
294
"(consumed). Returned data will include the separator at the end."
290
295
msgstr ""
291
296
"成功時には、データと区切り文字は内部バッファから削除されます (消費されます)。"
292
297
"返されるデータの最後には区切り文字が含まれます。"
293
298
294
- #: ../../library/asyncio-stream.rst:242
299
+ #: ../../library/asyncio-stream.rst:250
295
300
msgid ""
296
301
"If the amount of data read exceeds the configured stream limit, a :exc:"
297
302
"`LimitOverrunError` exception is raised, and the data is left in the "
@@ -301,7 +306,7 @@ msgstr ""
301
306
"`LimitOverrunError` 例外が送出されます。このときデータは内部バッファーに残さ"
302
307
"れ、再度読み出すことができます。"
303
308
304
- #: ../../library/asyncio-stream.rst:246
309
+ #: ../../library/asyncio-stream.rst:254
305
310
msgid ""
306
311
"If EOF is reached before the complete separator is found, an :exc:"
307
312
"`IncompleteReadError` exception is raised, and the internal buffer is "
@@ -312,31 +317,31 @@ msgstr ""
312
317
"外が送出され、内部バッファーがリセットされます。このとき :attr:"
313
318
"`IncompleteReadError.partial` 属性は区切り文字の一部を含むかもしれません。"
314
319
315
- #: ../../library/asyncio-stream.rst:255
320
+ #: ../../library/asyncio-stream.rst:263
316
321
msgid "Return ``True`` if the buffer is empty and :meth:`feed_eof` was called."
317
322
msgstr ""
318
323
"バッファーが空で :meth:`feed_eof` が呼ばれていた場合 ``True`` を返します。"
319
324
320
- #: ../../library/asyncio-stream.rst:260
325
+ #: ../../library/asyncio-stream.rst:268
321
326
msgid "StreamWriter"
322
327
msgstr "StreamWriter"
323
328
324
- #: ../../library/asyncio-stream.rst:264
329
+ #: ../../library/asyncio-stream.rst:272
325
330
msgid ""
326
331
"Represents a writer object that provides APIs to write data to the IO stream."
327
332
msgstr ""
328
333
"IO ストリームにデータを書き込むための API を提供するライターオブジェクトを表"
329
334
"します。"
330
335
331
- #: ../../library/asyncio-stream.rst:267
336
+ #: ../../library/asyncio-stream.rst:275
332
337
msgid ""
333
338
"It is not recommended to instantiate *StreamWriter* objects directly; use :"
334
339
"func:`open_connection` and :func:`start_server` instead."
335
340
msgstr ""
336
341
"*StreamWriter* オブジェクトを直接インスタンス化することは推奨されません; 代わ"
337
342
"りに :func:`open_connection` や :func:`start_server` を使ってください。"
338
343
339
- #: ../../library/asyncio-stream.rst:273
344
+ #: ../../library/asyncio-stream.rst:281
340
345
msgid ""
341
346
"The method attempts to write the *data* to the underlying socket "
342
347
"immediately. If that fails, the data is queued in an internal write buffer "
@@ -346,11 +351,11 @@ msgstr ""
346
351
"込みに失敗した場合、データは送信可能になるまで内部の書き込みバッファーに格納"
347
352
"されて待機します。"
348
353
349
- #: ../../library/asyncio-stream.rst:277 ../../library/asyncio-stream.rst:289
354
+ #: ../../library/asyncio-stream.rst:285 ../../library/asyncio-stream.rst:297
350
355
msgid "The method should be used along with the ``drain()`` method::"
351
356
msgstr "このメソッドは ``drain()`` メソッドと組み合わせて使うべきです::"
352
357
353
- #: ../../library/asyncio-stream.rst:284
358
+ #: ../../library/asyncio-stream.rst:292
354
359
msgid ""
355
360
"The method writes a list (or any iterable) of bytes to the underlying socket "
356
361
"immediately. If that fails, the data is queued in an internal write buffer "
@@ -360,48 +365,48 @@ msgstr ""
360
365
"を即座に書き込みます。書き込みに失敗した場合、データは送信可能になるまで内部"
361
366
"の書き込みバッファーに格納されて待機します。"
362
367
363
- #: ../../library/asyncio-stream.rst:296
368
+ #: ../../library/asyncio-stream.rst:304
364
369
msgid "The method closes the stream and the underlying socket."
365
370
msgstr "このメソッドはストリームと背後にあるソケットをクローズします。"
366
371
367
- #: ../../library/asyncio-stream.rst:298
372
+ #: ../../library/asyncio-stream.rst:306
368
373
msgid ""
369
374
"The method should be used, though not mandatory, along with the "
370
375
"``wait_closed()`` method::"
371
376
msgstr ""
372
377
373
- #: ../../library/asyncio-stream.rst:306
378
+ #: ../../library/asyncio-stream.rst:314
374
379
msgid ""
375
380
"Return ``True`` if the underlying transport supports the :meth:`write_eof` "
376
381
"method, ``False`` otherwise."
377
382
msgstr ""
378
383
"背後にあるトランスポートが :meth:`write_eof` メソッドをサポートしている場合 "
379
384
"``True`` を返し、そうでない場合は ``False`` を返します。"
380
385
381
- #: ../../library/asyncio-stream.rst:311
386
+ #: ../../library/asyncio-stream.rst:319
382
387
msgid ""
383
388
"Close the write end of the stream after the buffered write data is flushed."
384
389
msgstr ""
385
390
"バッファーされた書き込みデータを全て書き込んでから、ストリームの書き込み側終"
386
391
"端をクローズします。"
387
392
388
- #: ../../library/asyncio-stream.rst:316
393
+ #: ../../library/asyncio-stream.rst:324
389
394
msgid "Return the underlying asyncio transport."
390
395
msgstr "背後にある asyncio トランスポートを返します。"
391
396
392
- #: ../../library/asyncio-stream.rst:320
397
+ #: ../../library/asyncio-stream.rst:328
393
398
msgid ""
394
399
"Access optional transport information; see :meth:`BaseTransport."
395
400
"get_extra_info` for details."
396
401
msgstr ""
397
402
"オプションのトランスポート情報にアクセスします。詳細は :meth:`BaseTransport."
398
403
"get_extra_info` を参照してください。"
399
404
400
- #: ../../library/asyncio-stream.rst:325
405
+ #: ../../library/asyncio-stream.rst:333
401
406
msgid "Wait until it is appropriate to resume writing to the stream. Example::"
402
407
msgstr "ストリームへの書き込み再開に適切な状態になるまで待ちます。使用例::"
403
408
404
- #: ../../library/asyncio-stream.rst:331
409
+ #: ../../library/asyncio-stream.rst:339
405
410
msgid ""
406
411
"This is a flow control method that interacts with the underlying IO write "
407
412
"buffer. When the size of the buffer reaches the high watermark, *drain()* "
@@ -415,65 +420,65 @@ msgstr ""
415
420
"をブロックします。待ち受けの必要がない場合、 :meth:`drain` は即座にリターンし"
416
421
"ます。"
417
422
418
- #: ../../library/asyncio-stream.rst:341
423
+ #: ../../library/asyncio-stream.rst:349
419
424
msgid "Upgrade an existing stream-based connection to TLS."
420
425
msgstr ""
421
426
422
- #: ../../library/asyncio-stream.rst:343
427
+ #: ../../library/asyncio-stream.rst:351
423
428
msgid "Parameters:"
424
429
msgstr "引数:"
425
430
426
- #: ../../library/asyncio-stream.rst:345
431
+ #: ../../library/asyncio-stream.rst:353
427
432
msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`."
428
433
msgstr "*sslcontext*: 構成済みの :class:`~ssl.SSLContext` インスタンスです。"
429
434
430
- #: ../../library/asyncio-stream.rst:347
435
+ #: ../../library/asyncio-stream.rst:355
431
436
msgid ""
432
437
"*server_hostname*: sets or overrides the host name that the target server's "
433
438
"certificate will be matched against."
434
439
msgstr ""
435
440
"*server_hostname*: 対象のサーバーの証明書との照合に使われるホスト名を設定また"
436
441
"は上書きします。"
437
442
438
- #: ../../library/asyncio-stream.rst:350
443
+ #: ../../library/asyncio-stream.rst:358
439
444
msgid ""
440
445
"*ssl_handshake_timeout* is the time in seconds to wait for the TLS handshake "
441
446
"to complete before aborting the connection. ``60.0`` seconds if ``None`` "
442
447
"(default)."
443
448
msgstr ""
444
449
445
- #: ../../library/asyncio-stream.rst:358
450
+ #: ../../library/asyncio-stream.rst:366
446
451
msgid ""
447
452
"Return ``True`` if the stream is closed or in the process of being closed."
448
453
msgstr ""
449
454
"ストリームがクローズされたか、またはクローズ処理中の場合に ``True`` を返しま"
450
455
"す。"
451
456
452
- #: ../../library/asyncio-stream.rst:365
457
+ #: ../../library/asyncio-stream.rst:373
453
458
msgid "Wait until the stream is closed."
454
459
msgstr "ストリームがクローズされるまで待機します。"
455
460
456
- #: ../../library/asyncio-stream.rst:367
461
+ #: ../../library/asyncio-stream.rst:375
457
462
msgid ""
458
463
"Should be called after :meth:`close` to wait until the underlying connection "
459
464
"is closed, ensuring that all data has been flushed before e.g. exiting the "
460
465
"program."
461
466
msgstr ""
462
467
463
- #: ../../library/asyncio-stream.rst:375
468
+ #: ../../library/asyncio-stream.rst:383
464
469
msgid "Examples"
465
470
msgstr "使用例"
466
471
467
- #: ../../library/asyncio-stream.rst:380
472
+ #: ../../library/asyncio-stream.rst:388
468
473
msgid "TCP echo client using streams"
469
474
msgstr "ストリームを使った TCP Echo クライアント"
470
475
471
- #: ../../library/asyncio-stream.rst:382
476
+ #: ../../library/asyncio-stream.rst:390
472
477
msgid "TCP echo client using the :func:`asyncio.open_connection` function::"
473
478
msgstr ""
474
479
":func:`asyncio.open_connection` 関数を使った TCP Echo クライアントです::"
475
480
476
- #: ../../library/asyncio-stream.rst:406
481
+ #: ../../library/asyncio-stream.rst:414
477
482
msgid ""
478
483
"The :ref:`TCP echo client protocol "
479
484
"<asyncio_example_tcp_echo_client_protocol>` example uses the low-level :meth:"
@@ -483,15 +488,15 @@ msgstr ""
483
488
"<asyncio_example_tcp_echo_client_protocol>` の例は低水準の :meth:`loop."
484
489
"create_connection` メソッドを使っています。"
485
490
486
- #: ../../library/asyncio-stream.rst:413
491
+ #: ../../library/asyncio-stream.rst:421
487
492
msgid "TCP echo server using streams"
488
493
msgstr "ストリームを使った TCP Echo サーバー"
489
494
490
- #: ../../library/asyncio-stream.rst:415
495
+ #: ../../library/asyncio-stream.rst:423
491
496
msgid "TCP echo server using the :func:`asyncio.start_server` function::"
492
497
msgstr ":func:`asyncio.start_server` 関数を使った TCP Echo サーバーです::"
493
498
494
- #: ../../library/asyncio-stream.rst:449
499
+ #: ../../library/asyncio-stream.rst:457
495
500
msgid ""
496
501
"The :ref:`TCP echo server protocol "
497
502
"<asyncio_example_tcp_echo_server_protocol>` example uses the :meth:`loop."
@@ -501,37 +506,37 @@ msgstr ""
501
506
"<asyncio_example_tcp_echo_server_protocol>` の例は :meth:`loop."
502
507
"create_server` メソッドを使っています。"
503
508
504
- #: ../../library/asyncio-stream.rst:454
509
+ #: ../../library/asyncio-stream.rst:462
505
510
msgid "Get HTTP headers"
506
511
msgstr "HTTP ヘッダーの取得"
507
512
508
- #: ../../library/asyncio-stream.rst:456
513
+ #: ../../library/asyncio-stream.rst:464
509
514
msgid ""
510
515
"Simple example querying HTTP headers of the URL passed on the command line::"
511
516
msgstr ""
512
517
"コマンドラインから渡された URL の HTTP ヘッダーを問い合わせる簡単な例です::"
513
518
514
- #: ../../library/asyncio-stream.rst:495
519
+ #: ../../library/asyncio-stream.rst:503
515
520
msgid "Usage::"
516
521
msgstr "使い方::"
517
522
518
- #: ../../library/asyncio-stream.rst:499
523
+ #: ../../library/asyncio-stream.rst:507
519
524
msgid "or with HTTPS::"
520
525
msgstr "または HTTPS を使用::"
521
526
522
- #: ../../library/asyncio-stream.rst:507
527
+ #: ../../library/asyncio-stream.rst:515
523
528
msgid "Register an open socket to wait for data using streams"
524
529
msgstr "ストリームを使ってデータを待つオープンソケットの登録"
525
530
526
- #: ../../library/asyncio-stream.rst:509
531
+ #: ../../library/asyncio-stream.rst:517
527
532
msgid ""
528
533
"Coroutine waiting until a socket receives data using the :func:"
529
534
"`open_connection` function::"
530
535
msgstr ""
531
536
":func:`open_connection` 関数を使ってソケットがデータを受信するまで待つコルー"
532
537
"チンです::"
533
538
534
- #: ../../library/asyncio-stream.rst:544
539
+ #: ../../library/asyncio-stream.rst:552
535
540
msgid ""
536
541
"The :ref:`register an open socket to wait for data using a protocol "
537
542
"<asyncio_example_create_connection>` example uses a low-level protocol and "
@@ -541,7 +546,7 @@ msgstr ""
541
546
"<asyncio_example_create_connection>` 例では、低水準のプロトコルと :meth:"
542
547
"`loop.create_connection` メソッドを使っています。"
543
548
544
- #: ../../library/asyncio-stream.rst:548
549
+ #: ../../library/asyncio-stream.rst:556
545
550
msgid ""
546
551
"The :ref:`watch a file descriptor for read events "
547
552
"<asyncio_example_watch_fd>` example uses the low-level :meth:`loop."
0 commit comments