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

Appearance settings

Commit 462e13d

Browse filesBrowse files
sync with cpython c16cf9b6
1 parent b19da11 commit 462e13d
Copy full SHA for 462e13d

File tree

Expand file treeCollapse file tree

1 file changed

+47
-41
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+47
-41
lines changed

‎library/asyncio-eventloop.po

Copy file name to clipboardExpand all lines: library/asyncio-eventloop.po
+47-41Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-07-17 17:39+0800\n"
10+
"POT-Creation-Date: 2023-07-20 00:03+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-"
@@ -259,7 +259,7 @@ msgstr ""
259259

260260
#: ../../library/asyncio-eventloop.rst:176
261261
#: ../../library/asyncio-eventloop.rst:1236
262-
#: ../../library/asyncio-eventloop.rst:1639
262+
#: ../../library/asyncio-eventloop.rst:1642
263263
msgid "Example::"
264264
msgstr ""
265265
"範例:\n"
@@ -1976,39 +1976,45 @@ msgstr ""
19761976
msgid "Server object is an asynchronous context manager since Python 3.7."
19771977
msgstr ""
19781978

1979-
#: ../../library/asyncio-eventloop.rst:1598
1979+
#: ../../library/asyncio-eventloop.rst:1596
1980+
msgid ""
1981+
"This class was exposed publicly as ``asyncio.Server`` in Python 3.9.11, "
1982+
"3.10.3 and 3.11."
1983+
msgstr ""
1984+
1985+
#: ../../library/asyncio-eventloop.rst:1601
19801986
msgid ""
19811987
"Stop serving: close listening sockets and set the :attr:`sockets` attribute "
19821988
"to ``None``."
19831989
msgstr ""
19841990

1985-
#: ../../library/asyncio-eventloop.rst:1601
1991+
#: ../../library/asyncio-eventloop.rst:1604
19861992
msgid ""
19871993
"The sockets that represent existing incoming client connections are left "
19881994
"open."
19891995
msgstr ""
19901996

1991-
#: ../../library/asyncio-eventloop.rst:1604
1997+
#: ../../library/asyncio-eventloop.rst:1607
19921998
msgid ""
19931999
"The server is closed asynchronously, use the :meth:`wait_closed` coroutine "
19942000
"to wait until the server is closed."
19952001
msgstr ""
19962002

1997-
#: ../../library/asyncio-eventloop.rst:1609
2003+
#: ../../library/asyncio-eventloop.rst:1612
19982004
msgid "Return the event loop associated with the server object."
19992005
msgstr ""
20002006

2001-
#: ../../library/asyncio-eventloop.rst:1615
2007+
#: ../../library/asyncio-eventloop.rst:1618
20022008
msgid "Start accepting connections."
20032009
msgstr ""
20042010

2005-
#: ../../library/asyncio-eventloop.rst:1617
2011+
#: ../../library/asyncio-eventloop.rst:1620
20062012
msgid ""
20072013
"This method is idempotent, so it can be called when the server is already "
20082014
"serving."
20092015
msgstr ""
20102016

2011-
#: ../../library/asyncio-eventloop.rst:1620
2017+
#: ../../library/asyncio-eventloop.rst:1623
20122018
msgid ""
20132019
"The *start_serving* keyword-only parameter to :meth:`loop.create_server` "
20142020
"and :meth:`asyncio.start_server` allows creating a Server object that is not "
@@ -2017,169 +2023,169 @@ msgid ""
20172023
"accepting connections."
20182024
msgstr ""
20192025

2020-
#: ../../library/asyncio-eventloop.rst:1631
2026+
#: ../../library/asyncio-eventloop.rst:1634
20212027
msgid ""
20222028
"Start accepting connections until the coroutine is cancelled. Cancellation "
20232029
"of ``serve_forever`` task causes the server to be closed."
20242030
msgstr ""
20252031

2026-
#: ../../library/asyncio-eventloop.rst:1635
2032+
#: ../../library/asyncio-eventloop.rst:1638
20272033
msgid ""
20282034
"This method can be called if the server is already accepting connections. "
20292035
"Only one ``serve_forever`` task can exist per one *Server* object."
20302036
msgstr ""
20312037

2032-
#: ../../library/asyncio-eventloop.rst:1657
2038+
#: ../../library/asyncio-eventloop.rst:1660
20332039
msgid "Return ``True`` if the server is accepting new connections."
20342040
msgstr ""
20352041

2036-
#: ../../library/asyncio-eventloop.rst:1663
2042+
#: ../../library/asyncio-eventloop.rst:1666
20372043
msgid "Wait until the :meth:`close` method completes."
20382044
msgstr ""
20392045

2040-
#: ../../library/asyncio-eventloop.rst:1667
2046+
#: ../../library/asyncio-eventloop.rst:1670
20412047
msgid ""
20422048
"List of socket-like objects, ``asyncio.trsock.TransportSocket``, which the "
20432049
"server is listening on."
20442050
msgstr ""
20452051

2046-
#: ../../library/asyncio-eventloop.rst:1670
2052+
#: ../../library/asyncio-eventloop.rst:1673
20472053
msgid ""
20482054
"Prior to Python 3.7 ``Server.sockets`` used to return an internal list of "
20492055
"server sockets directly. In 3.7 a copy of that list is returned."
20502056
msgstr ""
20512057

2052-
#: ../../library/asyncio-eventloop.rst:1680
2058+
#: ../../library/asyncio-eventloop.rst:1683
20532059
msgid "Event Loop Implementations"
20542060
msgstr ""
20552061

2056-
#: ../../library/asyncio-eventloop.rst:1682
2062+
#: ../../library/asyncio-eventloop.rst:1685
20572063
msgid ""
20582064
"asyncio ships with two different event loop implementations: :class:"
20592065
"`SelectorEventLoop` and :class:`ProactorEventLoop`."
20602066
msgstr ""
20612067

2062-
#: ../../library/asyncio-eventloop.rst:1685
2068+
#: ../../library/asyncio-eventloop.rst:1688
20632069
msgid ""
20642070
"By default asyncio is configured to use :class:`SelectorEventLoop` on Unix "
20652071
"and :class:`ProactorEventLoop` on Windows."
20662072
msgstr ""
20672073

2068-
#: ../../library/asyncio-eventloop.rst:1691
2074+
#: ../../library/asyncio-eventloop.rst:1694
20692075
msgid "An event loop based on the :mod:`selectors` module."
20702076
msgstr ""
20712077

2072-
#: ../../library/asyncio-eventloop.rst:1693
2078+
#: ../../library/asyncio-eventloop.rst:1696
20732079
msgid ""
20742080
"Uses the most efficient *selector* available for the given platform. It is "
20752081
"also possible to manually configure the exact selector implementation to be "
20762082
"used::"
20772083
msgstr ""
20782084

2079-
#: ../../library/asyncio-eventloop.rst:1708
2085+
#: ../../library/asyncio-eventloop.rst:1711
20802086
msgid ":ref:`Availability <availability>`: Unix, Windows."
20812087
msgstr ":ref:`適用 <availability>`:Unix、Windows。"
20822088

2083-
#: ../../library/asyncio-eventloop.rst:1713
2089+
#: ../../library/asyncio-eventloop.rst:1716
20842090
msgid "An event loop for Windows that uses \"I/O Completion Ports\" (IOCP)."
20852091
msgstr ""
20862092

2087-
#: ../../library/asyncio-eventloop.rst:1715
2093+
#: ../../library/asyncio-eventloop.rst:1718
20882094
msgid ":ref:`Availability <availability>`: Windows."
20892095
msgstr ":ref:`適用 <availability>`:Windows。"
20902096

2091-
#: ../../library/asyncio-eventloop.rst:1719
2097+
#: ../../library/asyncio-eventloop.rst:1722
20922098
msgid ""
20932099
"`MSDN documentation on I/O Completion Ports <https://docs.microsoft.com/en-"
20942100
"ca/windows/desktop/FileIO/i-o-completion-ports>`_."
20952101
msgstr ""
20962102

2097-
#: ../../library/asyncio-eventloop.rst:1725
2103+
#: ../../library/asyncio-eventloop.rst:1728
20982104
msgid "Abstract base class for asyncio-compliant event loops."
20992105
msgstr ""
21002106

2101-
#: ../../library/asyncio-eventloop.rst:1727
2107+
#: ../../library/asyncio-eventloop.rst:1730
21022108
msgid ""
21032109
"The :ref:`asyncio-event-loop-methods` section lists all methods that an "
21042110
"alternative implementation of ``AbstractEventLoop`` should have defined."
21052111
msgstr ""
21062112

2107-
#: ../../library/asyncio-eventloop.rst:1733
2113+
#: ../../library/asyncio-eventloop.rst:1736
21082114
msgid "Examples"
21092115
msgstr "範例"
21102116

2111-
#: ../../library/asyncio-eventloop.rst:1735
2117+
#: ../../library/asyncio-eventloop.rst:1738
21122118
msgid ""
21132119
"Note that all examples in this section **purposefully** show how to use the "
21142120
"low-level event loop APIs, such as :meth:`loop.run_forever` and :meth:`loop."
21152121
"call_soon`. Modern asyncio applications rarely need to be written this way; "
21162122
"consider using the high-level functions like :func:`asyncio.run`."
21172123
msgstr ""
21182124

2119-
#: ../../library/asyncio-eventloop.rst:1745
2125+
#: ../../library/asyncio-eventloop.rst:1748
21202126
msgid "Hello World with call_soon()"
21212127
msgstr ""
21222128

2123-
#: ../../library/asyncio-eventloop.rst:1747
2129+
#: ../../library/asyncio-eventloop.rst:1750
21242130
msgid ""
21252131
"An example using the :meth:`loop.call_soon` method to schedule a callback. "
21262132
"The callback displays ``\"Hello World\"`` and then stops the event loop::"
21272133
msgstr ""
21282134

2129-
#: ../../library/asyncio-eventloop.rst:1771
2135+
#: ../../library/asyncio-eventloop.rst:1774
21302136
msgid ""
21312137
"A similar :ref:`Hello World <coroutine>` example created with a coroutine "
21322138
"and the :func:`run` function."
21332139
msgstr ""
21342140

2135-
#: ../../library/asyncio-eventloop.rst:1778
2141+
#: ../../library/asyncio-eventloop.rst:1781
21362142
msgid "Display the current date with call_later()"
21372143
msgstr ""
21382144

2139-
#: ../../library/asyncio-eventloop.rst:1780
2145+
#: ../../library/asyncio-eventloop.rst:1783
21402146
msgid ""
21412147
"An example of a callback displaying the current date every second. The "
21422148
"callback uses the :meth:`loop.call_later` method to reschedule itself after "
21432149
"5 seconds, and then stops the event loop::"
21442150
msgstr ""
21452151

2146-
#: ../../library/asyncio-eventloop.rst:1808
2152+
#: ../../library/asyncio-eventloop.rst:1811
21472153
msgid ""
21482154
"A similar :ref:`current date <asyncio_example_sleep>` example created with a "
21492155
"coroutine and the :func:`run` function."
21502156
msgstr ""
21512157

2152-
#: ../../library/asyncio-eventloop.rst:1815
2158+
#: ../../library/asyncio-eventloop.rst:1818
21532159
msgid "Watch a file descriptor for read events"
21542160
msgstr ""
21552161

2156-
#: ../../library/asyncio-eventloop.rst:1817
2162+
#: ../../library/asyncio-eventloop.rst:1820
21572163
msgid ""
21582164
"Wait until a file descriptor received some data using the :meth:`loop."
21592165
"add_reader` method and then close the event loop::"
21602166
msgstr ""
21612167

2162-
#: ../../library/asyncio-eventloop.rst:1855
2168+
#: ../../library/asyncio-eventloop.rst:1858
21632169
msgid ""
21642170
"A similar :ref:`example <asyncio_example_create_connection>` using "
21652171
"transports, protocols, and the :meth:`loop.create_connection` method."
21662172
msgstr ""
21672173

2168-
#: ../../library/asyncio-eventloop.rst:1859
2174+
#: ../../library/asyncio-eventloop.rst:1862
21692175
msgid ""
21702176
"Another similar :ref:`example <asyncio_example_create_connection-streams>` "
21712177
"using the high-level :func:`asyncio.open_connection` function and streams."
21722178
msgstr ""
21732179

2174-
#: ../../library/asyncio-eventloop.rst:1867
2180+
#: ../../library/asyncio-eventloop.rst:1870
21752181
msgid "Set signal handlers for SIGINT and SIGTERM"
21762182
msgstr ""
21772183

2178-
#: ../../library/asyncio-eventloop.rst:1869
2184+
#: ../../library/asyncio-eventloop.rst:1872
21792185
msgid "(This ``signals`` example only works on Unix.)"
21802186
msgstr ""
21812187

2182-
#: ../../library/asyncio-eventloop.rst:1871
2188+
#: ../../library/asyncio-eventloop.rst:1874
21832189
msgid ""
21842190
"Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using "
21852191
"the :meth:`loop.add_signal_handler` method::"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.