-
-
Notifications
You must be signed in to change notification settings - Fork 224
Expand file tree
/
Copy pathasyncio-platforms.po
More file actions
196 lines (171 loc) · 7.34 KB
/
asyncio-platforms.po
File metadata and controls
196 lines (171 loc) · 7.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Matt Wang <[email protected]>, 2021
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-09-08 15:25+0800\n"
"PO-Revision-Date: 2022-01-17 11:37+0800\n"
"Last-Translator: Matt Wang <[email protected]>\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 "平臺支援"
#: ../../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"
msgstr "所有平台"
#: ../../library/asyncio-platforms.rst:19
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"
msgstr "Windows"
#: ../../library/asyncio-platforms.rst:26
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`"
#: ../../library/asyncio-platforms.rst:34
msgid "On Windows, :class:`ProactorEventLoop` is now the default event loop."
msgstr "在 Windows 上,現在 :class:`ProactorEventLoop` 是預設的事件迴圈。"
#: ../../library/asyncio-platforms.rst:36
msgid "All event loops on Windows do not support the following methods:"
msgstr "Windows 上的所有事件迴圈都不支援以下 method(方法):"
#: ../../library/asyncio-platforms.rst:38
msgid ""
":meth:`loop.create_unix_connection` and :meth:`loop.create_unix_server` are "
"not supported. The :const:`socket.AF_UNIX` socket family is specific to Unix."
msgstr ""
"不支援 :meth:`loop.create_unix_connection` "
"和 :meth:`loop.create_unix_server`。:const:`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:"
msgstr ":class:`SelectorEventLoop` 有以下限制:"
#: ../../library/asyncio-platforms.rst:47
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:"
msgstr ":class:`ProactorEventLoop` 有以下限制:"
#: ../../library/asyncio-platforms.rst:62
msgid ""
"The :meth:`loop.add_reader` and :meth:`loop.add_writer` methods are not "
"supported."
msgstr "不支援 :meth:`loop.add_reader` 和 :meth:`loop.add_writer` method。"
#: ../../library/asyncio-platforms.rst:65
msgid ""
"The resolution of the monotonic clock on Windows is usually around 15.6 "
"milliseconds. The best resolution is 0.5 milliseconds. The resolution "
"depends on the 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 "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:82
msgid "macOS"
msgstr "macOS"
#: ../../library/asyncio-platforms.rst:84
msgid "Modern macOS versions are fully supported."
msgstr "完整支援現在普遍流行的 macOS 版本。"
#: ../../library/asyncio-platforms.rst:87
msgid "macOS <= 10.8"
msgstr "macOS <= 10.8"
#: ../../library/asyncio-platforms.rst:88
msgid ""
"On macOS 10.6, 10.7 and 10.8, the default event loop "
"uses :class:`selectors.KqueueSelector`, which does not support character "
"devices on these versions. The :class:`SelectorEventLoop` can be manually "
"configured to use :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 上支援字元裝置。例如: ::"
#: ../../library/asyncio-platforms.rst:95
msgid ""
"import asyncio\n"
"import selectors\n"
"\n"
"selector = selectors.SelectSelector()\n"
"loop = asyncio.SelectorEventLoop(selector)\n"
"asyncio.set_event_loop(loop)"
msgstr ""
"import asyncio\n"
"import selectors\n"
"\n"
"selector = selectors.SelectSelector()\n"
"loop = asyncio.SelectorEventLoop(selector)\n"
"asyncio.set_event_loop(loop)"