Expand Up @@ -3,31 +3,36 @@ # This file is distributed under the same license as the Python package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy # Translators: # Matt Wang <mattwang44@gmail.com>, 2021 # msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-06-20 18:08+0800\n" "PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE \n" "Last-Translator:FULL NAME <EMAIL@ADDRESS >\n" "PO-Revision-Date:2022-01-17 11:37+0800 \n" "Last-Translator:Matt Wang <mattwang44@gmail.com >\n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.0.1\n" #: ../../library/asyncio-platforms.rst:9 msgid "Platform Support" msgstr "" msgstr "平臺支援 " #: ../../library/asyncio-platforms.rst:11 msgid "" "The :mod:`asyncio` module is designed to be portable, but some platforms " "have subtle differences and limitations due to the platforms' underlying " "architecture and capabilities." msgstr "" ":mod:`asyncio` module(模組)被設計為可攜的 (portable),但由於平臺的底層架構" "和功能不同,在一些平臺上存在細微的差異和限制。" #: ../../library/asyncio-platforms.rst:17 msgid "All Platforms" Expand All @@ -38,6 +43,7 @@ msgid "" ":meth:`loop.add_reader` and :meth:`loop.add_writer` cannot be used to " "monitor file I/O." msgstr "" ":meth:`loop.add_reader` 和 :meth:`loop.add_writer` 不能用來監視檔案 I/O。" #: ../../library/asyncio-platforms.rst:24 msgid "Windows" Expand All @@ -48,29 +54,32 @@ msgid "" "**Source code:** :source:`Lib/asyncio/proactor_events.py`, :source:`Lib/" "asyncio/windows_events.py`, :source:`Lib/asyncio/windows_utils.py`" msgstr "" "**原始碼:**\\ :source:`Lib/asyncio/proactor_events.py`\\ 、\\ " ":source:`Lib/asyncio/windows_events.py`\\ 、\\ :source:`Lib/asyncio/" "windows_utils.py`" "**原始碼:**\\ :source:`Lib/asyncio/proactor_events.py`\\ 、\\ :source:`Lib/" "asyncio/windows_events.py`\\ 、\\ :source:`Lib/asyncio/windows_utils.py`" #: ../../library/asyncio-platforms.rst:34 msgid "On Windows, :class:`ProactorEventLoop` is now the default event loop." msgstr "" msgstr "在 Windows 上,現在 :class:`ProactorEventLoop` 是預設的事件迴圈。 " #: ../../library/asyncio-platforms.rst:36 msgid "All event loops on Windows do not support the following methods:" msgstr "" msgstr "Windows 上的所有事件迴圈都不支援以下 method(方法): " #: ../../library/asyncio-platforms.rst:38 msgid "" ":meth:`loop.create_unix_connection` and :meth:`loop.create_unix_server` are " "not supported. The :data:`socket.AF_UNIX` socket family is specific to Unix." msgstr "" "不支援 :meth:`loop.create_unix_connection` 和 :meth:`loop.create_unix_server`" "\\ 。\\ :data:`socket.AF_UNIX` socket 系列常數僅限於 Unix 上使用。" #: ../../library/asyncio-platforms.rst:42 msgid "" ":meth:`loop.add_signal_handler` and :meth:`loop.remove_signal_handler` are " "not supported." msgstr "" "不支援 :meth:`loop.add_signal_handler` 和 :meth:`loop.remove_signal_handler`" "\\ 。" #: ../../library/asyncio-platforms.rst:45 msgid ":class:`SelectorEventLoop` has the following limitations:" Expand All @@ -81,25 +90,34 @@ msgid "" ":class:`~selectors.SelectSelector` is used to wait on socket events: it " "supports sockets and is limited to 512 sockets." msgstr "" ":class:`~selectors.SelectSelector` 只被用於等待 socket 事件:它支援 socket 且" "最多支援 512 個 socket。" #: ../../library/asyncio-platforms.rst:50 msgid "" ":meth:`loop.add_reader` and :meth:`loop.add_writer` only accept socket " "handles (e.g. pipe file descriptors are not supported)." msgstr "" ":meth:`loop.add_reader` 和 :meth:`loop.add_writer` 只接受 socket 處理函式(例" "如不支援 pipe 檔案描述器 (pipe file descriptor))。" #: ../../library/asyncio-platforms.rst:53 msgid "" "Pipes are not supported, so the :meth:`loop.connect_read_pipe` and :meth:" "`loop.connect_write_pipe` methods are not implemented." msgstr "" "因為不支援 pipe,所以 :meth:`loop.connect_read_pipe` 和 :meth:`loop." "connect_write_pipe` method 沒有被實作出來。" #: ../../library/asyncio-platforms.rst:56 msgid "" ":ref:`Subprocesses <asyncio-subprocess>` are not supported, i.e. :meth:`loop." "subprocess_exec` and :meth:`loop.subprocess_shell` methods are not " "implemented." msgstr "" "不支援\\ :ref:`子行程 (subprocess) <asyncio-subprocess>`\\ ,也就是說 :meth:" "`loop.subprocess_exec` 和 :meth:`loop.subprocess_shell` method 沒有被實作出" "來。" #: ../../library/asyncio-platforms.rst:60 msgid ":class:`ProactorEventLoop` has the following limitations:" Expand All @@ -109,7 +127,7 @@ msgstr ":class:`ProactorEventLoop` 有以下限制:" msgid "" "The :meth:`loop.add_reader` and :meth:`loop.add_writer` methods are not " "supported." msgstr "" msgstr "不支援 :meth:`loop.add_reader` 和 :meth:`loop.add_writer` method。 " #: ../../library/asyncio-platforms.rst:65 msgid "" Expand All @@ -118,31 +136,39 @@ msgid "" "hardware (availability of `HPET <https://en.wikipedia.org/wiki/" "High_Precision_Event_Timer>`_) and on the Windows configuration." msgstr "" "Windows 上單調時鐘 (monotonic clock) 的解析度大約為 15.6 毫秒。最佳的解析度" "是 0.5 毫秒。解析度和硬體(\\ `HPET <https://zh.wikipedia.org/wiki/高精度事件" "計時器>`_ 是否可用)與 Windows 的設定有關。" #: ../../library/asyncio-platforms.rst:75 msgid "Subprocess Support on Windows" msgstr "" msgstr "Windows 的子行程支援 " #: ../../library/asyncio-platforms.rst:77 msgid "" "On Windows, the default event loop :class:`ProactorEventLoop` supports " "subprocesses, whereas :class:`SelectorEventLoop` does not." msgstr "" "在 Windows 上,預設的事件迴圈 :class:`ProactorEventLoop` 支援子行程,而 :" "class:`SelectorEventLoop` 則不支援。" #: ../../library/asyncio-platforms.rst:80 msgid "" "The :meth:`policy.set_child_watcher() <AbstractEventLoopPolicy." "set_child_watcher>` function is also not supported, as :class:" "`ProactorEventLoop` has a different mechanism to watch child processes." msgstr "" "也不支援 :meth:`policy.set_child_watcher() <AbstractEventLoopPolicy." "set_child_watcher>` 函式,\\ :class:`ProactorEventLoop` 在監視子行程上有不同" "的機制。" #: ../../library/asyncio-platforms.rst:87 msgid "macOS" msgstr "macOS" #: ../../library/asyncio-platforms.rst:89 msgid "Modern macOS versions are fully supported." msgstr "" msgstr "完整支援現在普遍流行的 macOS 版本。 " #: ../../library/asyncio-platforms.rst:92 msgid "macOS <= 10.8" Expand All @@ -156,3 +182,10 @@ msgid "" "class:`~selectors.SelectSelector` or :class:`~selectors.PollSelector` to " "support character devices on these older versions of macOS. Example::" msgstr "" "在 macOS 10.6、10.7 和 10.8 上,預設的事件迴圈是使用 :class:`selectors." "KqueueSelector`\\ ,在這些版本上它並不支援字元裝置 (character device)。可以手" "工設置 :class:`SelectorEventLoop` 來使用 :class:`~selectors.SelectSelector` " "或 :class:`~selectors.PollSelector` 以在這些舊版 macOS 上支援字元裝置。例" "如:\n" "\n" "::"