88msgstr ""
99"Project-Id-Version : Python 3.13\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2025-06-27 07:36 +0000\n "
11+ "POT-Creation-Date : 2025-08-19 00:16 +0000\n "
1212"PO-Revision-Date : 2022-10-31 16:28+0800\n "
1313"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
1414"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -42,7 +42,7 @@ msgstr ""
4242msgid "Here is an example of a TCP echo client written using asyncio streams::"
4343msgstr "這是一個使用 asyncio 串流編寫的 TCP echo 用戶端範例: ::"
4444
45- #: ../../library/asyncio-stream.rst:22 ../../library/asyncio-stream.rst:437
45+ #: ../../library/asyncio-stream.rst:22 ../../library/asyncio-stream.rst:440
4646msgid ""
4747"import asyncio\n"
4848"\n"
@@ -146,7 +146,7 @@ msgstr "移除 *loop* 參數。"
146146
147147#: ../../library/asyncio-stream.rst:87 ../../library/asyncio-stream.rst:131
148148#: ../../library/asyncio-stream.rst:167 ../../library/asyncio-stream.rst:202
149- #: ../../library/asyncio-stream.rst:404
149+ #: ../../library/asyncio-stream.rst:407
150150msgid "Added the *ssl_shutdown_timeout* parameter."
151151msgstr "新增 *ssl_shutdown_timeout* 參數。"
152152
@@ -409,7 +409,7 @@ msgstr ""
409409"此方法會嘗試立即將 *data* 寫入到底層的 socket。如果失敗,資料會被放到內部寫入"
410410"緩衝中排隊等待 (queue),直到它可被發送。"
411411
412- #: ../../library/asyncio-stream.rst:319 ../../library/asyncio-stream.rst:331
412+ #: ../../library/asyncio-stream.rst:319 ../../library/asyncio-stream.rst:334
413413msgid "The method should be used along with the ``drain()`` method::"
414414msgstr "此方法應當與 ``drain()`` 方法一起使用: ::"
415415
@@ -421,7 +421,13 @@ msgstr ""
421421"stream.write(data)\n"
422422"await stream.drain()"
423423
424- #: ../../library/asyncio-stream.rst:326
424+ #: ../../library/asyncio-stream.rst:325
425+ msgid ""
426+ "The *data* buffer should be a C contiguous one-dimensional :term:`bytes-like "
427+ "object <bytes-like object>`."
428+ msgstr ""
429+
430+ #: ../../library/asyncio-stream.rst:329
425431msgid ""
426432"The method writes a list (or any iterable) of bytes to the underlying socket "
427433"immediately. If that fails, the data is queued in an internal write buffer "
@@ -430,68 +436,68 @@ msgstr ""
430436"此方法會立即嘗試將一個位元組 list(或任何可疊代物件 (iterable))寫入到底層的 "
431437"socket。如果失敗,資料會被放到內部寫入緩衝中排隊等待,直到它可被發送。"
432438
433- #: ../../library/asyncio-stream.rst:333
439+ #: ../../library/asyncio-stream.rst:336
434440msgid ""
435441"stream.writelines(lines)\n"
436442"await stream.drain()"
437443msgstr ""
438444"stream.writelines(lines)\n"
439445"await stream.drain()"
440446
441- #: ../../library/asyncio-stream.rst:338
447+ #: ../../library/asyncio-stream.rst:341
442448msgid "The method closes the stream and the underlying socket."
443449msgstr "此方法會關閉串流以及底層的 socket。"
444450
445- #: ../../library/asyncio-stream.rst:340
451+ #: ../../library/asyncio-stream.rst:343
446452msgid ""
447453"The method should be used, though not mandatory, along with the "
448454"``wait_closed()`` method::"
449455msgstr "此方法應與 ``wait_closed()`` 方法一起使用,但並非強制: ::"
450456
451- #: ../../library/asyncio-stream.rst:343
457+ #: ../../library/asyncio-stream.rst:346
452458msgid ""
453459"stream.close()\n"
454460"await stream.wait_closed()"
455461msgstr ""
456462"stream.close()\n"
457463"await stream.wait_closed()"
458464
459- #: ../../library/asyncio-stream.rst:348
465+ #: ../../library/asyncio-stream.rst:351
460466msgid ""
461467"Return ``True`` if the underlying transport supports the :meth:`write_eof` "
462468"method, ``False`` otherwise."
463469msgstr ""
464470"如果底層的傳輸支援 :meth:`write_eof` 方法就回傳 ``True``,否則回傳 "
465471"``False``。"
466472
467- #: ../../library/asyncio-stream.rst:353
473+ #: ../../library/asyncio-stream.rst:356
468474msgid ""
469475"Close the write end of the stream after the buffered write data is flushed."
470476msgstr "在已緩衝的寫入資料被清理 (flush) 後關閉串流的寫入端。"
471477
472- #: ../../library/asyncio-stream.rst:358
478+ #: ../../library/asyncio-stream.rst:361
473479msgid "Return the underlying asyncio transport."
474480msgstr "回傳底層的 asyncio 傳輸。"
475481
476- #: ../../library/asyncio-stream.rst:362
482+ #: ../../library/asyncio-stream.rst:365
477483msgid ""
478484"Access optional transport information; see :meth:`BaseTransport."
479485"get_extra_info` for details."
480486msgstr "存取可選的傳輸資訊;詳情請見 :meth:`BaseTransport.get_extra_info`。"
481487
482- #: ../../library/asyncio-stream.rst:368
488+ #: ../../library/asyncio-stream.rst:371
483489msgid "Wait until it is appropriate to resume writing to the stream. Example::"
484490msgstr "等待直到可以繼續寫入到串流。範例: ::"
485491
486- #: ../../library/asyncio-stream.rst:371
492+ #: ../../library/asyncio-stream.rst:374
487493msgid ""
488494"writer.write(data)\n"
489495"await writer.drain()"
490496msgstr ""
491497"writer.write(data)\n"
492498"await writer.drain()"
493499
494- #: ../../library/asyncio-stream.rst:374
500+ #: ../../library/asyncio-stream.rst:377
495501msgid ""
496502"This is a flow control method that interacts with the underlying IO write "
497503"buffer. When the size of the buffer reaches the high watermark, *drain()* "
@@ -503,48 +509,48 @@ msgstr ""
503509"(high watermark) 時,*drain()* 會阻塞直到緩衝區大小減少至最低標記位 (low "
504510"watermark) 以便繼續寫入。當沒有要等待的資料時,:meth:`drain` 會立即回傳。"
505511
506- #: ../../library/asyncio-stream.rst:385
512+ #: ../../library/asyncio-stream.rst:388
507513msgid "Upgrade an existing stream-based connection to TLS."
508514msgstr "將現有的基於串流的連線升級到 TLS。"
509515
510- #: ../../library/asyncio-stream.rst:387
516+ #: ../../library/asyncio-stream.rst:390
511517msgid "Parameters:"
512518msgstr "參數:"
513519
514- #: ../../library/asyncio-stream.rst:389
520+ #: ../../library/asyncio-stream.rst:392
515521msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`."
516522msgstr "*sslcontext*:一個 :class:`~ssl.SSLContext` 的已配置實例。"
517523
518- #: ../../library/asyncio-stream.rst:391
524+ #: ../../library/asyncio-stream.rst:394
519525msgid ""
520526"*server_hostname*: sets or overrides the host name that the target server's "
521527"certificate will be matched against."
522528msgstr "*server_hostname*:設定或覆寫將會被目標伺服器憑證比對的主機名稱。"
523529
524- #: ../../library/asyncio-stream.rst:394
530+ #: ../../library/asyncio-stream.rst:397
525531msgid ""
526532"*ssl_handshake_timeout* is the time in seconds to wait for the TLS handshake "
527533"to complete before aborting the connection. ``60.0`` seconds if ``None`` "
528534"(default)."
529535msgstr ""
530536
531- #: ../../library/asyncio-stream.rst:398
537+ #: ../../library/asyncio-stream.rst:401
532538msgid ""
533539"*ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown "
534540"to complete before aborting the connection. ``30.0`` seconds if ``None`` "
535541"(default)."
536542msgstr ""
537543
538- #: ../../library/asyncio-stream.rst:410
544+ #: ../../library/asyncio-stream.rst:413
539545msgid ""
540546"Return ``True`` if the stream is closed or in the process of being closed."
541547msgstr "如果串流已被關閉或正在被關閉則回傳 ``True``。"
542548
543- #: ../../library/asyncio-stream.rst:418
549+ #: ../../library/asyncio-stream.rst:421
544550msgid "Wait until the stream is closed."
545551msgstr "等待直到串流被關閉。"
546552
547- #: ../../library/asyncio-stream.rst:420
553+ #: ../../library/asyncio-stream.rst:423
548554msgid ""
549555"Should be called after :meth:`close` to wait until the underlying connection "
550556"is closed, ensuring that all data has been flushed before e.g. exiting the "
@@ -553,19 +559,19 @@ msgstr ""
553559"應當在 :meth:`close` 之後才被呼叫,這會持續等待直到底層的連線被關閉,以確保在"
554560"這之前(例如在程式退出前)所有資料都已經被清空"
555561
556- #: ../../library/asyncio-stream.rst:428
562+ #: ../../library/asyncio-stream.rst:431
557563msgid "Examples"
558564msgstr "範例"
559565
560- #: ../../library/asyncio-stream.rst:433
566+ #: ../../library/asyncio-stream.rst:436
561567msgid "TCP echo client using streams"
562568msgstr "使用串流的 TCP echo 用戶端"
563569
564- #: ../../library/asyncio-stream.rst:435
570+ #: ../../library/asyncio-stream.rst:438
565571msgid "TCP echo client using the :func:`asyncio.open_connection` function::"
566572msgstr "使用 :func:`asyncio.open_connection` 函式的 TCP echo 用戶端: ::"
567573
568- #: ../../library/asyncio-stream.rst:459
574+ #: ../../library/asyncio-stream.rst:462
569575msgid ""
570576"The :ref:`TCP echo client protocol "
571577"<asyncio_example_tcp_echo_client_protocol>` example uses the low-level :meth:"
@@ -574,15 +580,15 @@ msgstr ""
574580"使用低階 :meth:`loop.create_connection` 方法的 :ref:`TCP echo 用戶端協定 "
575581"<asyncio_example_tcp_echo_client_protocol>`\\ 範例。"
576582
577- #: ../../library/asyncio-stream.rst:466
583+ #: ../../library/asyncio-stream.rst:469
578584msgid "TCP echo server using streams"
579585msgstr "使用串流的 TCP echo 伺服器"
580586
581- #: ../../library/asyncio-stream.rst:468
587+ #: ../../library/asyncio-stream.rst:471
582588msgid "TCP echo server using the :func:`asyncio.start_server` function::"
583589msgstr "TCP echo 伺服器使用 :func:`asyncio.start_server` 函式: ::"
584590
585- #: ../../library/asyncio-stream.rst:470
591+ #: ../../library/asyncio-stream.rst:473
586592msgid ""
587593"import asyncio\n"
588594"\n"
@@ -642,7 +648,7 @@ msgstr ""
642648"\n"
643649"asyncio.run(main())"
644650
645- #: ../../library/asyncio-stream.rst:502
651+ #: ../../library/asyncio-stream.rst:505
646652msgid ""
647653"The :ref:`TCP echo server protocol "
648654"<asyncio_example_tcp_echo_server_protocol>` example uses the :meth:`loop."
@@ -651,16 +657,16 @@ msgstr ""
651657"使用 :meth:`loop.create_server` 方法的 :ref:`TCP echo 伺服器協定 "
652658"<asyncio_example_tcp_echo_server_protocol>` 範例。"
653659
654- #: ../../library/asyncio-stream.rst:507
660+ #: ../../library/asyncio-stream.rst:510
655661msgid "Get HTTP headers"
656662msgstr "取得 HTTP 標頭"
657663
658- #: ../../library/asyncio-stream.rst:509
664+ #: ../../library/asyncio-stream.rst:512
659665msgid ""
660666"Simple example querying HTTP headers of the URL passed on the command line::"
661667msgstr "查詢自命令列傳入之 URL 所帶有 HTTP 標頭的簡單範例: ::"
662668
663- #: ../../library/asyncio-stream.rst:511
669+ #: ../../library/asyncio-stream.rst:514
664670msgid ""
665671"import asyncio\n"
666672"import urllib.parse\n"
@@ -699,34 +705,34 @@ msgid ""
699705"asyncio.run(print_http_headers(url))"
700706msgstr ""
701707
702- #: ../../library/asyncio-stream.rst:548
708+ #: ../../library/asyncio-stream.rst:551
703709msgid "Usage::"
704710msgstr "用法: ::"
705711
706- #: ../../library/asyncio-stream.rst:550
712+ #: ../../library/asyncio-stream.rst:553
707713msgid "python example.py http://example.com/path/page.html"
708714msgstr "python example.py http://example.com/path/page.html"
709715
710- #: ../../library/asyncio-stream.rst:552
716+ #: ../../library/asyncio-stream.rst:555
711717msgid "or with HTTPS::"
712718msgstr "或使用 HTTPS: ::"
713719
714- #: ../../library/asyncio-stream.rst:554
720+ #: ../../library/asyncio-stream.rst:557
715721msgid "python example.py https://example.com/path/page.html"
716722msgstr "python example.py https://example.com/path/page.html"
717723
718- #: ../../library/asyncio-stream.rst:560
724+ #: ../../library/asyncio-stream.rst:563
719725msgid "Register an open socket to wait for data using streams"
720726msgstr "註冊一個使用串流來等待資料的開放 socket"
721727
722- #: ../../library/asyncio-stream.rst:562
728+ #: ../../library/asyncio-stream.rst:565
723729msgid ""
724730"Coroutine waiting until a socket receives data using the :func:"
725731"`open_connection` function::"
726732msgstr ""
727733"等待直到 socket 透過使用 :func:`open_connection` 函式接收到資料的協程: ::"
728734
729- #: ../../library/asyncio-stream.rst:565
735+ #: ../../library/asyncio-stream.rst:568
730736msgid ""
731737"import asyncio\n"
732738"import socket\n"
@@ -759,7 +765,7 @@ msgid ""
759765"asyncio.run(wait_for_data())"
760766msgstr ""
761767
762- #: ../../library/asyncio-stream.rst:597
768+ #: ../../library/asyncio-stream.rst:600
763769msgid ""
764770"The :ref:`register an open socket to wait for data using a protocol "
765771"<asyncio_example_create_connection>` example uses a low-level protocol and "
@@ -769,7 +775,7 @@ msgstr ""
769775"<asyncio_example_create_connection>`\\ 範例中,有使用了低階協定以及 :meth:"
770776"`loop.create_connection` 方法。"
771777
772- #: ../../library/asyncio-stream.rst:601
778+ #: ../../library/asyncio-stream.rst:604
773779msgid ""
774780"The :ref:`watch a file descriptor for read events "
775781"<asyncio_example_watch_fd>` example uses the low-level :meth:`loop."
0 commit comments