Skip to content

Sync with CPython 3.12 #490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 24, 2023
Prev Previous commit
Next Next commit
sync with cpython c16cf9b6
  • Loading branch information
github-actions[bot] authored Jul 20, 2023
commit 462e13dca799ea3bac865449c49d43c0b3941e5a
88 changes: 47 additions & 41 deletions library/asyncio-eventloop.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-17 17:39+0800\n"
"POT-Creation-Date: 2023-07-20 00:03+0000\n"
"PO-Revision-Date: 2022-02-20 12:36+0800\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -259,7 +259,7 @@ msgstr ""

#: ../../library/asyncio-eventloop.rst:176
#: ../../library/asyncio-eventloop.rst:1236
#: ../../library/asyncio-eventloop.rst:1639
#: ../../library/asyncio-eventloop.rst:1642
msgid "Example::"
msgstr ""
"範例:\n"
Expand Down Expand Up @@ -1976,39 +1976,45 @@ msgstr ""
msgid "Server object is an asynchronous context manager since Python 3.7."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1598
#: ../../library/asyncio-eventloop.rst:1596
msgid ""
"This class was exposed publicly as ``asyncio.Server`` in Python 3.9.11, "
"3.10.3 and 3.11."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1601
msgid ""
"Stop serving: close listening sockets and set the :attr:`sockets` attribute "
"to ``None``."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1601
#: ../../library/asyncio-eventloop.rst:1604
msgid ""
"The sockets that represent existing incoming client connections are left "
"open."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1604
#: ../../library/asyncio-eventloop.rst:1607
msgid ""
"The server is closed asynchronously, use the :meth:`wait_closed` coroutine "
"to wait until the server is closed."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1609
#: ../../library/asyncio-eventloop.rst:1612
msgid "Return the event loop associated with the server object."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1615
#: ../../library/asyncio-eventloop.rst:1618
msgid "Start accepting connections."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1617
#: ../../library/asyncio-eventloop.rst:1620
msgid ""
"This method is idempotent, so it can be called when the server is already "
"serving."
msgstr ""

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

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

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

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

#: ../../library/asyncio-eventloop.rst:1663
#: ../../library/asyncio-eventloop.rst:1666
msgid "Wait until the :meth:`close` method completes."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1667
#: ../../library/asyncio-eventloop.rst:1670
msgid ""
"List of socket-like objects, ``asyncio.trsock.TransportSocket``, which the "
"server is listening on."
msgstr ""

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

#: ../../library/asyncio-eventloop.rst:1680
#: ../../library/asyncio-eventloop.rst:1683
msgid "Event Loop Implementations"
msgstr ""

#: ../../library/asyncio-eventloop.rst:1682
#: ../../library/asyncio-eventloop.rst:1685
msgid ""
"asyncio ships with two different event loop implementations: :class:"
"`SelectorEventLoop` and :class:`ProactorEventLoop`."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1685
#: ../../library/asyncio-eventloop.rst:1688
msgid ""
"By default asyncio is configured to use :class:`SelectorEventLoop` on Unix "
"and :class:`ProactorEventLoop` on Windows."
msgstr ""

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

#: ../../library/asyncio-eventloop.rst:1693
#: ../../library/asyncio-eventloop.rst:1696
msgid ""
"Uses the most efficient *selector* available for the given platform. It is "
"also possible to manually configure the exact selector implementation to be "
"used::"
msgstr ""

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

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

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

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

#: ../../library/asyncio-eventloop.rst:1725
#: ../../library/asyncio-eventloop.rst:1728
msgid "Abstract base class for asyncio-compliant event loops."
msgstr ""

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

#: ../../library/asyncio-eventloop.rst:1733
#: ../../library/asyncio-eventloop.rst:1736
msgid "Examples"
msgstr "範例"

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

#: ../../library/asyncio-eventloop.rst:1745
#: ../../library/asyncio-eventloop.rst:1748
msgid "Hello World with call_soon()"
msgstr ""

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

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

#: ../../library/asyncio-eventloop.rst:1778
#: ../../library/asyncio-eventloop.rst:1781
msgid "Display the current date with call_later()"
msgstr ""

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

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

#: ../../library/asyncio-eventloop.rst:1815
#: ../../library/asyncio-eventloop.rst:1818
msgid "Watch a file descriptor for read events"
msgstr ""

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

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

#: ../../library/asyncio-eventloop.rst:1859
#: ../../library/asyncio-eventloop.rst:1862
msgid ""
"Another similar :ref:`example <asyncio_example_create_connection-streams>` "
"using the high-level :func:`asyncio.open_connection` function and streams."
msgstr ""

#: ../../library/asyncio-eventloop.rst:1867
#: ../../library/asyncio-eventloop.rst:1870
msgid "Set signal handlers for SIGINT and SIGTERM"
msgstr ""

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

#: ../../library/asyncio-eventloop.rst:1871
#: ../../library/asyncio-eventloop.rst:1874
msgid ""
"Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using "
"the :meth:`loop.add_signal_handler` method::"
Expand Down