7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"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 "
11
11
"PO-Revision-Date : 2022-02-20 12:36+0800\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -259,7 +259,7 @@ msgstr ""
259
259
260
260
#: ../../library/asyncio-eventloop.rst:176
261
261
#: ../../library/asyncio-eventloop.rst:1236
262
- #: ../../library/asyncio-eventloop.rst:1639
262
+ #: ../../library/asyncio-eventloop.rst:1642
263
263
msgid "Example::"
264
264
msgstr ""
265
265
"範例:\n"
@@ -1976,39 +1976,45 @@ msgstr ""
1976
1976
msgid "Server object is an asynchronous context manager since Python 3.7."
1977
1977
msgstr ""
1978
1978
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
1980
1986
msgid ""
1981
1987
"Stop serving: close listening sockets and set the :attr:`sockets` attribute "
1982
1988
"to ``None``."
1983
1989
msgstr ""
1984
1990
1985
- #: ../../library/asyncio-eventloop.rst:1601
1991
+ #: ../../library/asyncio-eventloop.rst:1604
1986
1992
msgid ""
1987
1993
"The sockets that represent existing incoming client connections are left "
1988
1994
"open."
1989
1995
msgstr ""
1990
1996
1991
- #: ../../library/asyncio-eventloop.rst:1604
1997
+ #: ../../library/asyncio-eventloop.rst:1607
1992
1998
msgid ""
1993
1999
"The server is closed asynchronously, use the :meth:`wait_closed` coroutine "
1994
2000
"to wait until the server is closed."
1995
2001
msgstr ""
1996
2002
1997
- #: ../../library/asyncio-eventloop.rst:1609
2003
+ #: ../../library/asyncio-eventloop.rst:1612
1998
2004
msgid "Return the event loop associated with the server object."
1999
2005
msgstr ""
2000
2006
2001
- #: ../../library/asyncio-eventloop.rst:1615
2007
+ #: ../../library/asyncio-eventloop.rst:1618
2002
2008
msgid "Start accepting connections."
2003
2009
msgstr ""
2004
2010
2005
- #: ../../library/asyncio-eventloop.rst:1617
2011
+ #: ../../library/asyncio-eventloop.rst:1620
2006
2012
msgid ""
2007
2013
"This method is idempotent, so it can be called when the server is already "
2008
2014
"serving."
2009
2015
msgstr ""
2010
2016
2011
- #: ../../library/asyncio-eventloop.rst:1620
2017
+ #: ../../library/asyncio-eventloop.rst:1623
2012
2018
msgid ""
2013
2019
"The *start_serving* keyword-only parameter to :meth:`loop.create_server` "
2014
2020
"and :meth:`asyncio.start_server` allows creating a Server object that is not "
@@ -2017,169 +2023,169 @@ msgid ""
2017
2023
"accepting connections."
2018
2024
msgstr ""
2019
2025
2020
- #: ../../library/asyncio-eventloop.rst:1631
2026
+ #: ../../library/asyncio-eventloop.rst:1634
2021
2027
msgid ""
2022
2028
"Start accepting connections until the coroutine is cancelled. Cancellation "
2023
2029
"of ``serve_forever`` task causes the server to be closed."
2024
2030
msgstr ""
2025
2031
2026
- #: ../../library/asyncio-eventloop.rst:1635
2032
+ #: ../../library/asyncio-eventloop.rst:1638
2027
2033
msgid ""
2028
2034
"This method can be called if the server is already accepting connections. "
2029
2035
"Only one ``serve_forever`` task can exist per one *Server* object."
2030
2036
msgstr ""
2031
2037
2032
- #: ../../library/asyncio-eventloop.rst:1657
2038
+ #: ../../library/asyncio-eventloop.rst:1660
2033
2039
msgid "Return ``True`` if the server is accepting new connections."
2034
2040
msgstr ""
2035
2041
2036
- #: ../../library/asyncio-eventloop.rst:1663
2042
+ #: ../../library/asyncio-eventloop.rst:1666
2037
2043
msgid "Wait until the :meth:`close` method completes."
2038
2044
msgstr ""
2039
2045
2040
- #: ../../library/asyncio-eventloop.rst:1667
2046
+ #: ../../library/asyncio-eventloop.rst:1670
2041
2047
msgid ""
2042
2048
"List of socket-like objects, ``asyncio.trsock.TransportSocket``, which the "
2043
2049
"server is listening on."
2044
2050
msgstr ""
2045
2051
2046
- #: ../../library/asyncio-eventloop.rst:1670
2052
+ #: ../../library/asyncio-eventloop.rst:1673
2047
2053
msgid ""
2048
2054
"Prior to Python 3.7 ``Server.sockets`` used to return an internal list of "
2049
2055
"server sockets directly. In 3.7 a copy of that list is returned."
2050
2056
msgstr ""
2051
2057
2052
- #: ../../library/asyncio-eventloop.rst:1680
2058
+ #: ../../library/asyncio-eventloop.rst:1683
2053
2059
msgid "Event Loop Implementations"
2054
2060
msgstr ""
2055
2061
2056
- #: ../../library/asyncio-eventloop.rst:1682
2062
+ #: ../../library/asyncio-eventloop.rst:1685
2057
2063
msgid ""
2058
2064
"asyncio ships with two different event loop implementations: :class:"
2059
2065
"`SelectorEventLoop` and :class:`ProactorEventLoop`."
2060
2066
msgstr ""
2061
2067
2062
- #: ../../library/asyncio-eventloop.rst:1685
2068
+ #: ../../library/asyncio-eventloop.rst:1688
2063
2069
msgid ""
2064
2070
"By default asyncio is configured to use :class:`SelectorEventLoop` on Unix "
2065
2071
"and :class:`ProactorEventLoop` on Windows."
2066
2072
msgstr ""
2067
2073
2068
- #: ../../library/asyncio-eventloop.rst:1691
2074
+ #: ../../library/asyncio-eventloop.rst:1694
2069
2075
msgid "An event loop based on the :mod:`selectors` module."
2070
2076
msgstr ""
2071
2077
2072
- #: ../../library/asyncio-eventloop.rst:1693
2078
+ #: ../../library/asyncio-eventloop.rst:1696
2073
2079
msgid ""
2074
2080
"Uses the most efficient *selector* available for the given platform. It is "
2075
2081
"also possible to manually configure the exact selector implementation to be "
2076
2082
"used::"
2077
2083
msgstr ""
2078
2084
2079
- #: ../../library/asyncio-eventloop.rst:1708
2085
+ #: ../../library/asyncio-eventloop.rst:1711
2080
2086
msgid ":ref:`Availability <availability>`: Unix, Windows."
2081
2087
msgstr ":ref:`適用 <availability>`:Unix、Windows。"
2082
2088
2083
- #: ../../library/asyncio-eventloop.rst:1713
2089
+ #: ../../library/asyncio-eventloop.rst:1716
2084
2090
msgid "An event loop for Windows that uses \" I/O Completion Ports\" (IOCP)."
2085
2091
msgstr ""
2086
2092
2087
- #: ../../library/asyncio-eventloop.rst:1715
2093
+ #: ../../library/asyncio-eventloop.rst:1718
2088
2094
msgid ":ref:`Availability <availability>`: Windows."
2089
2095
msgstr ":ref:`適用 <availability>`:Windows。"
2090
2096
2091
- #: ../../library/asyncio-eventloop.rst:1719
2097
+ #: ../../library/asyncio-eventloop.rst:1722
2092
2098
msgid ""
2093
2099
"`MSDN documentation on I/O Completion Ports <https://docs.microsoft.com/en-"
2094
2100
"ca/windows/desktop/FileIO/i-o-completion-ports>`_."
2095
2101
msgstr ""
2096
2102
2097
- #: ../../library/asyncio-eventloop.rst:1725
2103
+ #: ../../library/asyncio-eventloop.rst:1728
2098
2104
msgid "Abstract base class for asyncio-compliant event loops."
2099
2105
msgstr ""
2100
2106
2101
- #: ../../library/asyncio-eventloop.rst:1727
2107
+ #: ../../library/asyncio-eventloop.rst:1730
2102
2108
msgid ""
2103
2109
"The :ref:`asyncio-event-loop-methods` section lists all methods that an "
2104
2110
"alternative implementation of ``AbstractEventLoop`` should have defined."
2105
2111
msgstr ""
2106
2112
2107
- #: ../../library/asyncio-eventloop.rst:1733
2113
+ #: ../../library/asyncio-eventloop.rst:1736
2108
2114
msgid "Examples"
2109
2115
msgstr "範例"
2110
2116
2111
- #: ../../library/asyncio-eventloop.rst:1735
2117
+ #: ../../library/asyncio-eventloop.rst:1738
2112
2118
msgid ""
2113
2119
"Note that all examples in this section **purposefully** show how to use the "
2114
2120
"low-level event loop APIs, such as :meth:`loop.run_forever` and :meth:`loop."
2115
2121
"call_soon`. Modern asyncio applications rarely need to be written this way; "
2116
2122
"consider using the high-level functions like :func:`asyncio.run`."
2117
2123
msgstr ""
2118
2124
2119
- #: ../../library/asyncio-eventloop.rst:1745
2125
+ #: ../../library/asyncio-eventloop.rst:1748
2120
2126
msgid "Hello World with call_soon()"
2121
2127
msgstr ""
2122
2128
2123
- #: ../../library/asyncio-eventloop.rst:1747
2129
+ #: ../../library/asyncio-eventloop.rst:1750
2124
2130
msgid ""
2125
2131
"An example using the :meth:`loop.call_soon` method to schedule a callback. "
2126
2132
"The callback displays ``\" Hello World\" `` and then stops the event loop::"
2127
2133
msgstr ""
2128
2134
2129
- #: ../../library/asyncio-eventloop.rst:1771
2135
+ #: ../../library/asyncio-eventloop.rst:1774
2130
2136
msgid ""
2131
2137
"A similar :ref:`Hello World <coroutine>` example created with a coroutine "
2132
2138
"and the :func:`run` function."
2133
2139
msgstr ""
2134
2140
2135
- #: ../../library/asyncio-eventloop.rst:1778
2141
+ #: ../../library/asyncio-eventloop.rst:1781
2136
2142
msgid "Display the current date with call_later()"
2137
2143
msgstr ""
2138
2144
2139
- #: ../../library/asyncio-eventloop.rst:1780
2145
+ #: ../../library/asyncio-eventloop.rst:1783
2140
2146
msgid ""
2141
2147
"An example of a callback displaying the current date every second. The "
2142
2148
"callback uses the :meth:`loop.call_later` method to reschedule itself after "
2143
2149
"5 seconds, and then stops the event loop::"
2144
2150
msgstr ""
2145
2151
2146
- #: ../../library/asyncio-eventloop.rst:1808
2152
+ #: ../../library/asyncio-eventloop.rst:1811
2147
2153
msgid ""
2148
2154
"A similar :ref:`current date <asyncio_example_sleep>` example created with a "
2149
2155
"coroutine and the :func:`run` function."
2150
2156
msgstr ""
2151
2157
2152
- #: ../../library/asyncio-eventloop.rst:1815
2158
+ #: ../../library/asyncio-eventloop.rst:1818
2153
2159
msgid "Watch a file descriptor for read events"
2154
2160
msgstr ""
2155
2161
2156
- #: ../../library/asyncio-eventloop.rst:1817
2162
+ #: ../../library/asyncio-eventloop.rst:1820
2157
2163
msgid ""
2158
2164
"Wait until a file descriptor received some data using the :meth:`loop."
2159
2165
"add_reader` method and then close the event loop::"
2160
2166
msgstr ""
2161
2167
2162
- #: ../../library/asyncio-eventloop.rst:1855
2168
+ #: ../../library/asyncio-eventloop.rst:1858
2163
2169
msgid ""
2164
2170
"A similar :ref:`example <asyncio_example_create_connection>` using "
2165
2171
"transports, protocols, and the :meth:`loop.create_connection` method."
2166
2172
msgstr ""
2167
2173
2168
- #: ../../library/asyncio-eventloop.rst:1859
2174
+ #: ../../library/asyncio-eventloop.rst:1862
2169
2175
msgid ""
2170
2176
"Another similar :ref:`example <asyncio_example_create_connection-streams>` "
2171
2177
"using the high-level :func:`asyncio.open_connection` function and streams."
2172
2178
msgstr ""
2173
2179
2174
- #: ../../library/asyncio-eventloop.rst:1867
2180
+ #: ../../library/asyncio-eventloop.rst:1870
2175
2181
msgid "Set signal handlers for SIGINT and SIGTERM"
2176
2182
msgstr ""
2177
2183
2178
- #: ../../library/asyncio-eventloop.rst:1869
2184
+ #: ../../library/asyncio-eventloop.rst:1872
2179
2185
msgid "(This ``signals`` example only works on Unix.)"
2180
2186
msgstr ""
2181
2187
2182
- #: ../../library/asyncio-eventloop.rst:1871
2188
+ #: ../../library/asyncio-eventloop.rst:1874
2183
2189
msgid ""
2184
2190
"Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using "
2185
2191
"the :meth:`loop.add_signal_handler` method::"
0 commit comments