-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathasyncio-platforms.po
More file actions
203 lines (177 loc) · 7.65 KB
/
Copy pathasyncio-platforms.po
File metadata and controls
203 lines (177 loc) · 7.65 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
197
198
199
200
201
202
203
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2025, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-03 14:16+0000\n"
"PO-Revision-Date: 2025-09-15 01:03+0000\n"
"Last-Translator: python-doc bot, 2025\n"
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\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` 模块被设计为可移植的,但由于平台的底层架构和功能,一些平台存在细微的差异和限制。"
#: ../../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上的所有事件循环都不支持以下方法:"
#: ../../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` 套接字族是 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` 只被用于等待套接字事件:它支持套接字且最多支持512个套接字。"
#: ../../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` "
"只接受套接字处理回调函数(如管道、文件描述符等都不支持)。"
#: ../../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 ""
"因为不支持管道,所以 :meth:`loop.connect_read_pipe` 和 :meth:`loop.connect_write_pipe`"
" 方法没有实现。"
#: ../../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:`Subprocesses <asyncio-subprocess>` ,也就是 "
":meth:`loop.subprocess_exec` 和 :meth:`loop.subprocess_shell` 方法没有实现。"
#: ../../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` 方法。"
#: ../../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 上单调时钟的分辨率约为 15.6 毫秒。 最佳分辨率是 0.5 毫秒。 分辨率依赖于具体的硬件 (`HPET "
"<https://en.wikipedia.org/wiki/High_Precision_Event_Timer>`_ 的可用性) 和 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: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 "完整支持流行的macOS版本。"
#: ../../library/asyncio-platforms.rst:92
msgid "macOS <= 10.8"
msgstr "macOS <= 10.8"
#: ../../library/asyncio-platforms.rst:93
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`,在这些版本上它并不支持字符设备。 可以手工配置 "
":class:`SelectorEventLoop` 来使用 :class:`~selectors.SelectSelector` 或 "
":class:`~selectors.PollSelector` 以在这些较老版本的 macOS 上支持字符设备。 例如::"
#: ../../library/asyncio-platforms.rst:100
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)"