Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2c0785d

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.11 (#376)
* sync with cpython f4888315* sync with cpython 72263f2a* sync with cpython 4b4e6da7* sync with cpython 6184b800* sync with cpython 4e096ec6* fix: resolve fuzzy entry* sync with cpython a7f9afdd* sync with cpython 1b2459dcCo-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
1 parent7e6882f commit2c0785d

12 files changed

+822
-837
lines changed

‎copyright.po

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
2+
# Copyright (C) 2001-2023, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:
66
# Adrian Liaw <adrianliaw2000@gmail.com>, 2015
77
# Ching-Lung Chuang, 2015
88
# Liang-Bo Wang <me@liang2.tw>, 2016
9+
# meowmeowcat <meowmeowcat1211@gmail.com>, 2021
910
msgid ""
1011
msgstr ""
1112
"Project-Id-Version:Python 3.11\n"
1213
"Report-Msgid-Bugs-To:\n"
13-
"POT-Creation-Date:2022-01-03 00:10+0000\n"
14+
"POT-Creation-Date:2023-01-10 00:17+0000\n"
1415
"PO-Revision-Date:2021-06-25 20:17+0800\n"
1516
"Last-Translator:meowmeowcat <meowmeowcat1211@gmail.com>\n"
1617
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -31,8 +32,8 @@ msgid "Python and this documentation is:"
3132
msgstr"Python 和這份說明文件的版權:"
3233

3334
#:../../copyright.rst:7
34-
msgid"Copyright © 2001-2022 Python Software Foundation. All rights reserved."
35-
msgstr"Copyright © 2001-2022 Python Software Foundation 保留一切權利。"
35+
msgid"Copyright © 2001-2023 Python Software Foundation. All rights reserved."
36+
msgstr"Copyright © 2001-2023 Python Software Foundation 保留一切權利。"
3637

3738
#:../../copyright.rst:9
3839
msgid"Copyright © 2000 BeOpen.com. All rights reserved."

‎library/asyncio-eventloop.po

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.11\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2022-12-17 00:14+0000\n"
10+
"POT-Creation-Date:2023-01-11 00:15+0000\n"
1111
"PO-Revision-Date:2022-02-20 12:36+0800\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -86,7 +86,7 @@ msgstr ""
8686
#:../../library/asyncio-eventloop.rst:50
8787
msgid""
8888
"If there is no running event loop set, the function will return the result "
89-
"of ``get_event_loop_policy().get_event_loop()`` call."
89+
"ofthe``get_event_loop_policy().get_event_loop()`` call."
9090
msgstr""
9191

9292
#:../../library/asyncio-eventloop.rst:53
@@ -103,17 +103,14 @@ msgid ""
103103
"and close an event loop."
104104
msgstr""
105105

106-
#:../../library/asyncio-eventloop.rst:62
107-
msgid""
108-
"Deprecation warning is emitted if there is no current event loop. In Python "
109-
"3.12 it will be an error."
110-
msgstr""
111-
112-
#:../../library/asyncio-eventloop.rst:67
106+
#:../../library/asyncio-eventloop.rst:63
113107
msgid""
114108
"In Python versions 3.10.0--3.10.8 and 3.11.0 this function (and other "
115-
"functions which used it implicitly) emitted a :exc:`DeprecationWarning` if "
116-
"there was no running event loop, even if the current loop was set."
109+
"functions which use it implicitly) emitted a :exc:`DeprecationWarning` if "
110+
"there was no running event loop, even if the current loop was set on the "
111+
"policy. In Python versions 3.10.9, 3.11.1 and 3.12 they emit a :exc:"
112+
"`DeprecationWarning` if there is no running event loop and no current loop "
113+
"is set. In some future Python release this will become an error."
117114
msgstr""
118115

119116
#:../../library/asyncio-eventloop.rst:74

‎library/asyncio-policy.po

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.11\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2022-12-07 00:17+0000\n"
11+
"POT-Creation-Date:2023-01-11 00:15+0000\n"
1212
"PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator:FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -145,47 +145,47 @@ msgstr ""
145145
msgid"On Windows, :class:`ProactorEventLoop` is now used by default."
146146
msgstr""
147147

148-
#:../../library/asyncio-policy.rst:115
148+
#:../../library/asyncio-policy.rst:116
149149
msgid""
150-
":meth:`get_event_loop` now emits a :exc:`DeprecationWarning` if there is no"
151-
"current event loop set and a newevent loophas been implicitly created. In "
152-
"Python 3.12 itwillbe an error."
150+
"In Python versions 3.10.9, 3.11.1 and 3.12 this function emits a :exc:"
151+
"`DeprecationWarning` if there is no runningevent loopand no current loop "
152+
"is set. In some future Python release thiswillbecome an error."
153153
msgstr""
154154

155-
#:../../library/asyncio-policy.rst:123
155+
#:../../library/asyncio-policy.rst:124
156156
msgid""
157157
"An alternative event loop policy that uses the :class:`SelectorEventLoop` "
158158
"event loop implementation."
159159
msgstr""
160160

161-
#:../../library/asyncio-policy.rst:126../../library/asyncio-policy.rst:134
161+
#:../../library/asyncio-policy.rst:127../../library/asyncio-policy.rst:135
162162
msgid":ref:`Availability <availability>`: Windows."
163163
msgstr":ref:`適用 <availability>`:Windows。"
164164

165-
#:../../library/asyncio-policy.rst:131
165+
#:../../library/asyncio-policy.rst:132
166166
msgid""
167167
"An alternative event loop policy that uses the :class:`ProactorEventLoop` "
168168
"event loop implementation."
169169
msgstr""
170170

171-
#:../../library/asyncio-policy.rst:140
171+
#:../../library/asyncio-policy.rst:141
172172
msgid"Process Watchers"
173173
msgstr""
174174

175-
#:../../library/asyncio-policy.rst:142
175+
#:../../library/asyncio-policy.rst:143
176176
msgid""
177177
"A process watcher allows customization of how an event loop monitors child "
178178
"processes on Unix. Specifically, the event loop needs to know when a child "
179179
"process has exited."
180180
msgstr""
181181

182-
#:../../library/asyncio-policy.rst:146
182+
#:../../library/asyncio-policy.rst:147
183183
msgid""
184184
"In asyncio, child processes are created with :func:`create_subprocess_exec` "
185185
"and :meth:`loop.subprocess_exec` functions."
186186
msgstr""
187187

188-
#:../../library/asyncio-policy.rst:150
188+
#:../../library/asyncio-policy.rst:151
189189
msgid""
190190
"asyncio defines the :class:`AbstractChildWatcher` abstract base class, which "
191191
"child watchers should implement, and has four different implementations: :"
@@ -194,176 +194,176 @@ msgid ""
194194
"`FastChildWatcher`."
195195
msgstr""
196196

197-
#:../../library/asyncio-policy.rst:156
197+
#:../../library/asyncio-policy.rst:157
198198
msgid""
199199
"See also the :ref:`Subprocess and Threads <asyncio-subprocess-threads>` "
200200
"section."
201201
msgstr""
202202

203-
#:../../library/asyncio-policy.rst:159
203+
#:../../library/asyncio-policy.rst:160
204204
msgid""
205205
"The following two functions can be used to customize the child process "
206206
"watcher implementation used by the asyncio event loop:"
207207
msgstr""
208208

209-
#:../../library/asyncio-policy.rst:164
209+
#:../../library/asyncio-policy.rst:165
210210
msgid"Return the current child watcher for the current policy."
211211
msgstr""
212212

213-
#:../../library/asyncio-policy.rst:168
213+
#:../../library/asyncio-policy.rst:169
214214
msgid""
215215
"Set the current child watcher to *watcher* for the current policy. "
216216
"*watcher* must implement methods defined in the :class:"
217217
"`AbstractChildWatcher` base class."
218218
msgstr""
219219

220-
#:../../library/asyncio-policy.rst:173
220+
#:../../library/asyncio-policy.rst:174
221221
msgid""
222222
"Third-party event loops implementations might not support custom child "
223223
"watchers. For such event loops, using :func:`set_child_watcher` might be "
224224
"prohibited or have no effect."
225225
msgstr""
226226

227-
#:../../library/asyncio-policy.rst:181
227+
#:../../library/asyncio-policy.rst:182
228228
msgid"Register a new child handler."
229229
msgstr""
230230

231-
#:../../library/asyncio-policy.rst:183
231+
#:../../library/asyncio-policy.rst:184
232232
msgid""
233233
"Arrange for ``callback(pid, returncode, *args)`` to be called when a process "
234234
"with PID equal to *pid* terminates. Specifying another callback for the "
235235
"same process replaces the previous handler."
236236
msgstr""
237237

238-
#:../../library/asyncio-policy.rst:188
238+
#:../../library/asyncio-policy.rst:189
239239
msgid"The *callback* callable must be thread-safe."
240240
msgstr""
241241

242-
#:../../library/asyncio-policy.rst:192
242+
#:../../library/asyncio-policy.rst:193
243243
msgid"Removes the handler for process with PID equal to *pid*."
244244
msgstr""
245245

246-
#:../../library/asyncio-policy.rst:194
246+
#:../../library/asyncio-policy.rst:195
247247
msgid""
248248
"The function returns ``True`` if the handler was successfully removed, "
249249
"``False`` if there was nothing to remove."
250250
msgstr""
251251

252-
#:../../library/asyncio-policy.rst:199
252+
#:../../library/asyncio-policy.rst:200
253253
msgid"Attach the watcher to an event loop."
254254
msgstr""
255255

256-
#:../../library/asyncio-policy.rst:201
256+
#:../../library/asyncio-policy.rst:202
257257
msgid""
258258
"If the watcher was previously attached to an event loop, then it is first "
259259
"detached before attaching to the new loop."
260260
msgstr""
261261

262-
#:../../library/asyncio-policy.rst:204
262+
#:../../library/asyncio-policy.rst:205
263263
msgid"Note: loop may be ``None``."
264264
msgstr""
265265

266-
#:../../library/asyncio-policy.rst:208
266+
#:../../library/asyncio-policy.rst:209
267267
msgid"Return ``True`` if the watcher is ready to use."
268268
msgstr""
269269

270-
#:../../library/asyncio-policy.rst:210
270+
#:../../library/asyncio-policy.rst:211
271271
msgid""
272272
"Spawning a subprocess with *inactive* current child watcher raises :exc:"
273273
"`RuntimeError`."
274274
msgstr""
275275

276-
#:../../library/asyncio-policy.rst:217
276+
#:../../library/asyncio-policy.rst:218
277277
msgid"Close the watcher."
278278
msgstr""
279279

280-
#:../../library/asyncio-policy.rst:219
280+
#:../../library/asyncio-policy.rst:220
281281
msgid""
282282
"This method has to be called to ensure that underlying resources are cleaned-"
283283
"up."
284284
msgstr""
285285

286-
#:../../library/asyncio-policy.rst:224
286+
#:../../library/asyncio-policy.rst:225
287287
msgid""
288288
"This implementation starts a new waiting thread for every subprocess spawn."
289289
msgstr""
290290

291-
#:../../library/asyncio-policy.rst:226
291+
#:../../library/asyncio-policy.rst:227
292292
msgid""
293293
"It works reliably even when the asyncio event loop is run in a non-main OS "
294294
"thread."
295295
msgstr""
296296

297-
#:../../library/asyncio-policy.rst:228
297+
#:../../library/asyncio-policy.rst:229
298298
msgid""
299299
"There is no noticeable overhead when handling a big number of children "
300300
"(*O(1)* each time a child terminates), but starting a thread per process "
301301
"requires extra memory."
302302
msgstr""
303303

304-
#:../../library/asyncio-policy.rst:231
304+
#:../../library/asyncio-policy.rst:232
305305
msgid"This watcher is used by default."
306306
msgstr""
307307

308-
#:../../library/asyncio-policy.rst:237
308+
#:../../library/asyncio-policy.rst:238
309309
msgid""
310310
"This implementation registers a :py:data:`SIGCHLD` signal handler on "
311311
"instantiation. That can break third-party code that installs a custom "
312312
"handler for :py:data:`SIGCHLD` signal."
313313
msgstr""
314314

315-
#:../../library/asyncio-policy.rst:241../../library/asyncio-policy.rst:259
315+
#:../../library/asyncio-policy.rst:242../../library/asyncio-policy.rst:260
316316
msgid""
317317
"The watcher avoids disrupting other code spawning processes by polling every "
318318
"process explicitly on a :py:data:`SIGCHLD` signal."
319319
msgstr""
320320

321-
#:../../library/asyncio-policy.rst:244
321+
#:../../library/asyncio-policy.rst:245
322322
msgid""
323323
"There is no limitation for running subprocesses from different threads once "
324324
"the watcher is installed."
325325
msgstr""
326326

327-
#:../../library/asyncio-policy.rst:247
327+
#:../../library/asyncio-policy.rst:248
328328
msgid""
329329
"The solution is safe but it has a significant overhead when handling a big "
330330
"number of processes (*O(n)* each time a :py:data:`SIGCHLD` is received)."
331331
msgstr""
332332

333-
#:../../library/asyncio-policy.rst:255
333+
#:../../library/asyncio-policy.rst:256
334334
msgid""
335335
"This implementation uses active event loop from the main thread to handle :"
336336
"py:data:`SIGCHLD` signal. If the main thread has no running event loop "
337337
"another thread cannot spawn a subprocess (:exc:`RuntimeError` is raised)."
338338
msgstr""
339339

340-
#:../../library/asyncio-policy.rst:262
340+
#:../../library/asyncio-policy.rst:263
341341
msgid""
342342
"This solution is as safe as :class:`MultiLoopChildWatcher` and has the same "
343343
"*O(N)* complexity but requires a running event loop in the main thread to "
344344
"work."
345345
msgstr""
346346

347-
#:../../library/asyncio-policy.rst:267
347+
#:../../library/asyncio-policy.rst:268
348348
msgid""
349349
"This implementation reaps every terminated processes by calling ``os."
350350
"waitpid(-1)`` directly, possibly breaking other code spawning processes and "
351351
"waiting for their termination."
352352
msgstr""
353353

354-
#:../../library/asyncio-policy.rst:271
354+
#:../../library/asyncio-policy.rst:272
355355
msgid""
356356
"There is no noticeable overhead when handling a big number of children "
357357
"(*O(1)* each time a child terminates)."
358358
msgstr""
359359

360-
#:../../library/asyncio-policy.rst:274
360+
#:../../library/asyncio-policy.rst:275
361361
msgid""
362362
"This solution requires a running event loop in the main thread to work, as :"
363363
"class:`SafeChildWatcher`."
364364
msgstr""
365365

366-
#:../../library/asyncio-policy.rst:279
366+
#:../../library/asyncio-policy.rst:280
367367
msgid""
368368
"This implementation polls process file descriptors (pidfds) to await child "
369369
"process termination. In some respects, :class:`PidfdChildWatcher` is a "
@@ -374,11 +374,11 @@ msgid ""
374374
"only work on recent (5.3+) kernels."
375375
msgstr""
376376

377-
#:../../library/asyncio-policy.rst:293
377+
#:../../library/asyncio-policy.rst:294
378378
msgid"Custom Policies"
379379
msgstr""
380380

381-
#:../../library/asyncio-policy.rst:295
381+
#:../../library/asyncio-policy.rst:296
382382
msgid""
383383
"To implement a new event loop policy, it is recommended to subclass :class:"
384384
"`DefaultEventLoopPolicy` and override the methods for which custom behavior "

‎library/ctypes.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.11\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2022-11-26 00:17+0000\n"
10+
"POT-Creation-Date:2023-01-10 17:25+0000\n"
1111
"PO-Revision-Date:2022-10-16 03:20+0800\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -512,7 +512,7 @@ msgstr ""
512512

513513
#:../../library/ctypes.rst:392
514514
msgid""
515-
"Because specifying the attribute does inhibit portability it isadviced to "
515+
"Because specifying the attribute does inhibit portability it isadvised to "
516516
"always specify ``argtypes`` for all variadic functions."
517517
msgstr""
518518

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp