diff --git a/library/_dummy_thread.po b/library/_dummy_thread.po deleted file mode 100644 index 6319e9f0c9..0000000000 --- a/library/_dummy_thread.po +++ /dev/null @@ -1,48 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2015-12-09 17:51+0000\n" -"Last-Translator: Liang-Bo Wang \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/_dummy_thread.rst:2 -msgid "" -":mod:`_dummy_thread` --- Drop-in replacement for the :mod:`_thread` module" -msgstr "" - -#: ../../library/_dummy_thread.rst:7 -msgid "**Source code:** :source:`Lib/_dummy_thread.py`" -msgstr "" - -#: ../../library/_dummy_thread.rst:9 -msgid "" -"Python now always has threading enabled. Please use :mod:`_thread` (or, " -"better, :mod:`threading`) instead." -msgstr "" - -#: ../../library/_dummy_thread.rst:15 -msgid "" -"This module provides a duplicate interface to the :mod:`_thread` module. It " -"was meant to be imported when the :mod:`_thread` module was not provided on " -"a platform." -msgstr "" - -#: ../../library/_dummy_thread.rst:19 -msgid "" -"Be careful to not use this module where deadlock might occur from a thread " -"being created that blocks waiting for another thread to be created. This " -"often occurs with blocking I/O." -msgstr "" diff --git a/library/asyncio-eventloops.po b/library/asyncio-eventloops.po deleted file mode 100644 index 2f8d596592..0000000000 --- a/library/asyncio-eventloops.po +++ /dev/null @@ -1,332 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2018-05-23 14:38+0000\n" -"Last-Translator: Adrian Liaw \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/asyncio-eventloops.rst:4 -msgid "Event loops" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:6 -msgid "**Source code:** :source:`Lib/asyncio/events.py`" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:9 -msgid "Event loop functions" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:11 -msgid "" -"The following functions are convenient shortcuts to accessing the methods of " -"the global policy. Note that this provides access to the default policy, " -"unless an alternative policy was set by calling :func:" -"`set_event_loop_policy` earlier in the execution of the process." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:18 -msgid "Equivalent to calling ``get_event_loop_policy().get_event_loop()``." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:22 -msgid "Equivalent to calling ``get_event_loop_policy().set_event_loop(loop)``." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:26 -msgid "Equivalent to calling ``get_event_loop_policy().new_event_loop()``." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:30 -msgid "" -"Return the running event loop in the current OS thread. If there is no " -"running event loop a :exc:`RuntimeError` is raised." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:39 -msgid "Available event loops" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:41 -msgid "" -"asyncio currently provides two implementations of event loops: :class:" -"`SelectorEventLoop` and :class:`ProactorEventLoop`." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:46 -msgid "" -"Event loop based on the :mod:`selectors` module. Subclass of :class:" -"`AbstractEventLoop`." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:49 -msgid "Use the most efficient selector available on the platform." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:51 -msgid "" -"On Windows, only sockets are supported (ex: pipes are not supported): see " -"the `MSDN documentation of select `_." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:57 -msgid "" -"Proactor event loop for Windows using \"I/O Completion Ports\" aka IOCP. " -"Subclass of :class:`AbstractEventLoop`." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:60 -msgid "Availability: Windows." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:64 -msgid "" -"`MSDN documentation on I/O Completion Ports `_." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:67 -msgid "Example to use a :class:`ProactorEventLoop` on Windows::" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:78 -msgid "Platform support" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:80 -msgid "" -"The :mod:`asyncio` module has been designed to be portable, but each " -"platform still has subtle differences and may not support all :mod:`asyncio` " -"features." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:84 -msgid "Windows" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:86 -msgid "Common limits of Windows event loops:" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:88 -msgid "" -":meth:`~AbstractEventLoop.create_unix_connection` and :meth:" -"`~AbstractEventLoop.create_unix_server` are not supported: the socket " -"family :data:`socket.AF_UNIX` is specific to UNIX" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:91 -msgid "" -":meth:`~AbstractEventLoop.add_signal_handler` and :meth:`~AbstractEventLoop." -"remove_signal_handler` are not supported" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:93 -msgid "" -":meth:`EventLoopPolicy.set_child_watcher` is not supported. :class:" -"`ProactorEventLoop` supports subprocesses. It has only one implementation to " -"watch child processes, there is no need to configure it." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:97 -msgid ":class:`SelectorEventLoop` specific limits:" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:99 -msgid "" -":class:`~selectors.SelectSelector` is used which only supports sockets and " -"is limited to 512 sockets." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:101 -msgid "" -":meth:`~AbstractEventLoop.add_reader` and :meth:`~AbstractEventLoop." -"add_writer` only accept file descriptors of sockets" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:103 -msgid "" -"Pipes are not supported (ex: :meth:`~AbstractEventLoop.connect_read_pipe`, :" -"meth:`~AbstractEventLoop.connect_write_pipe`)" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:106 -msgid "" -":ref:`Subprocesses ` are not supported (ex: :meth:" -"`~AbstractEventLoop.subprocess_exec`, :meth:`~AbstractEventLoop." -"subprocess_shell`)" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:110 -msgid ":class:`ProactorEventLoop` specific limits:" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:112 -msgid "" -":meth:`~AbstractEventLoop.create_datagram_endpoint` (UDP) is not supported" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:113 -msgid "" -":meth:`~AbstractEventLoop.add_reader` and :meth:`~AbstractEventLoop." -"add_writer` are not supported" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:116 -msgid "" -"The resolution of the monotonic clock on Windows is usually around 15.6 " -"msec. The best resolution is 0.5 msec. The resolution depends on the " -"hardware (availability of `HPET `_) and on the Windows configuration. See :ref:" -"`asyncio delayed calls `." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:124 -msgid ":class:`ProactorEventLoop` now supports SSL." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:128 -msgid "Mac OS X" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:130 -msgid "" -"Character devices like PTY are only well supported since Mavericks (Mac OS " -"10.9). They are not supported at all on Mac OS 10.5 and older." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:133 -msgid "" -"On Mac OS 10.6, 10.7 and 10.8, the default event loop is :class:" -"`SelectorEventLoop` which uses :class:`selectors.KqueueSelector`. :class:" -"`selectors.KqueueSelector` does not support character devices on these " -"versions. The :class:`SelectorEventLoop` can be used with :class:" -"`~selectors.SelectSelector` or :class:`~selectors.PollSelector` to support " -"character devices on these versions of Mac OS X. Example::" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:149 -msgid "Event loop policies and the default policy" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:151 -msgid "" -"Event loop management is abstracted with a *policy* pattern, to provide " -"maximal flexibility for custom platforms and frameworks. Throughout the " -"execution of a process, a single global policy object manages the event " -"loops available to the process based on the calling context. A policy is an " -"object implementing the :class:`AbstractEventLoopPolicy` interface." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:157 -msgid "" -"For most users of :mod:`asyncio`, policies never have to be dealt with " -"explicitly, since the default global policy is sufficient (see below)." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:160 -msgid "" -"The module-level functions :func:`get_event_loop` and :func:`set_event_loop` " -"provide convenient access to event loops managed by the default policy." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:166 -msgid "Event loop policy interface" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:168 -msgid "An event loop policy must implement the following interface:" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:172 -msgid "Event loop policy." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:176 -msgid "Get the event loop for the current context." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:178 -msgid "" -"Returns an event loop object implementing the :class:`AbstractEventLoop` " -"interface. In case called from coroutine, it returns the currently running " -"event loop." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:182 -msgid "" -"Raises an exception in case no event loop has been set for the current " -"context and the current policy does not specify to create one. It must never " -"return ``None``." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:190 -msgid "Set the event loop for the current context to *loop*." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:194 -msgid "" -"Create and return a new event loop object according to this policy's rules." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:197 -msgid "" -"If there's need to set this loop as the event loop for the current context, :" -"meth:`set_event_loop` must be called explicitly." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:201 -msgid "" -"The default policy defines context as the current thread, and manages an " -"event loop per thread that interacts with :mod:`asyncio`. An exception to " -"this rule happens when :meth:`~AbstractEventLoopPolicy.get_event_loop` is " -"called from a running future/coroutine, in which case it will return the " -"current loop running that future/coroutine." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:207 -msgid "" -"If the current thread doesn't already have an event loop associated with it, " -"the default policy's :meth:`~AbstractEventLoopPolicy.get_event_loop` method " -"creates one when called from the main thread, but raises :exc:`RuntimeError` " -"otherwise." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:214 -msgid "Access to the global loop policy" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:218 -msgid "Get the current event loop policy." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:222 -msgid "" -"Set the current event loop policy. If *policy* is ``None``, the default " -"policy is restored." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:227 -msgid "Customizing the event loop policy" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:229 -msgid "" -"To implement a new event loop policy, it is recommended you subclass the " -"concrete default event loop policy :class:`DefaultEventLoopPolicy` and " -"override the methods for which you want to change behavior, for example::" -msgstr "" diff --git a/library/dummy_threading.po b/library/dummy_threading.po deleted file mode 100644 index 54313d1720..0000000000 --- a/library/dummy_threading.po +++ /dev/null @@ -1,49 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2015-12-09 17:51+0000\n" -"Last-Translator: Liang-Bo Wang \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/dummy_threading.rst:2 -msgid "" -":mod:`dummy_threading` --- Drop-in replacement for the :mod:`threading` " -"module" -msgstr "" - -#: ../../library/dummy_threading.rst:7 -msgid "**Source code:** :source:`Lib/dummy_threading.py`" -msgstr "" - -#: ../../library/dummy_threading.rst:9 -msgid "" -"Python now always has threading enabled. Please use :mod:`threading` " -"instead." -msgstr "" - -#: ../../library/dummy_threading.rst:14 -msgid "" -"This module provides a duplicate interface to the :mod:`threading` module. " -"It was meant to be imported when the :mod:`_thread` module was not provided " -"on a platform." -msgstr "" - -#: ../../library/dummy_threading.rst:18 -msgid "" -"Be careful to not use this module where deadlock might occur from a thread " -"being created that blocks waiting for another thread to be created. This " -"often occurs with blocking I/O." -msgstr "" diff --git a/library/email.util.po b/library/email.util.po deleted file mode 100644 index f8a776b5e0..0000000000 --- a/library/email.util.po +++ /dev/null @@ -1,247 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2018-05-23 16:01+0000\n" -"Last-Translator: Adrian Liaw \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/email.util.rst:2 -msgid ":mod:`email.utils`: Miscellaneous utilities" -msgstr "" - -#: ../../library/email.util.rst:7 -msgid "**Source code:** :source:`Lib/email/utils.py`" -msgstr "" - -#: ../../library/email.util.rst:11 -msgid "" -"There are a couple of useful utilities provided in the :mod:`email.utils` " -"module:" -msgstr "" - -#: ../../library/email.util.rst:16 -msgid "" -"Return local time as an aware datetime object. If called without arguments, " -"return current time. Otherwise *dt* argument should be a :class:`~datetime." -"datetime` instance, and it is converted to the local time zone according to " -"the system time zone database. If *dt* is naive (that is, ``dt.tzinfo`` is " -"``None``), it is assumed to be in local time. In this case, a positive or " -"zero value for *isdst* causes ``localtime`` to presume initially that summer " -"time (for example, Daylight Saving Time) is or is not (respectively) in " -"effect for the specified time. A negative value for *isdst* causes the " -"``localtime`` to attempt to divine whether summer time is in effect for the " -"specified time." -msgstr "" - -#: ../../library/email.util.rst:32 -msgid "" -"Returns a string suitable for an :rfc:`2822`\\ -compliant :mailheader:" -"`Message-ID` header. Optional *idstring* if given, is a string used to " -"strengthen the uniqueness of the message id. Optional *domain* if given " -"provides the portion of the msgid after the '@'. The default is the local " -"hostname. It is not normally necessary to override this default, but may be " -"useful certain cases, such as a constructing distributed system that uses a " -"consistent domain name across multiple hosts." -msgstr "" - -#: ../../library/email.util.rst:40 -msgid "Added the *domain* keyword." -msgstr "" - -#: ../../library/email.util.rst:44 -msgid "" -"The remaining functions are part of the legacy (``Compat32``) email API. " -"There is no need to directly use these with the new API, since the parsing " -"and formatting they provide is done automatically by the header parsing " -"machinery of the new API." -msgstr "" - -#: ../../library/email.util.rst:52 -msgid "" -"Return a new string with backslashes in *str* replaced by two backslashes, " -"and double quotes replaced by backslash-double quote." -msgstr "" - -#: ../../library/email.util.rst:58 -msgid "" -"Return a new string which is an *unquoted* version of *str*. If *str* ends " -"and begins with double quotes, they are stripped off. Likewise if *str* " -"ends and begins with angle brackets, they are stripped off." -msgstr "" - -#: ../../library/email.util.rst:65 -msgid "" -"Parse address -- which should be the value of some address-containing field " -"such as :mailheader:`To` or :mailheader:`Cc` -- into its constituent " -"*realname* and *email address* parts. Returns a tuple of that information, " -"unless the parse fails, in which case a 2-tuple of ``('', '')`` is returned." -msgstr "" - -#: ../../library/email.util.rst:73 -msgid "" -"The inverse of :meth:`parseaddr`, this takes a 2-tuple of the form " -"``(realname, email_address)`` and returns the string value suitable for a :" -"mailheader:`To` or :mailheader:`Cc` header. If the first element of *pair* " -"is false, then the second element is returned unmodified." -msgstr "" - -#: ../../library/email.util.rst:78 -msgid "" -"Optional *charset* is the character set that will be used in the :rfc:`2047` " -"encoding of the ``realname`` if the ``realname`` contains non-ASCII " -"characters. Can be an instance of :class:`str` or a :class:`~email.charset." -"Charset`. Defaults to ``utf-8``." -msgstr "" - -#: ../../library/email.util.rst:83 -msgid "Added the *charset* option." -msgstr "" - -#: ../../library/email.util.rst:89 -msgid "" -"This method returns a list of 2-tuples of the form returned by " -"``parseaddr()``. *fieldvalues* is a sequence of header field values as might " -"be returned by :meth:`Message.get_all `. " -"Here's a simple example that gets all the recipients of a message::" -msgstr "" - -#: ../../library/email.util.rst:105 -msgid "" -"Attempts to parse a date according to the rules in :rfc:`2822`. however, " -"some mailers don't follow that format as specified, so :func:`parsedate` " -"tries to guess correctly in such cases. *date* is a string containing an :" -"rfc:`2822` date, such as ``\"Mon, 20 Nov 1995 19:12:08 -0500\"``. If it " -"succeeds in parsing the date, :func:`parsedate` returns a 9-tuple that can " -"be passed directly to :func:`time.mktime`; otherwise ``None`` will be " -"returned. Note that indexes 6, 7, and 8 of the result tuple are not usable." -msgstr "" - -#: ../../library/email.util.rst:116 -msgid "" -"Performs the same function as :func:`parsedate`, but returns either ``None`` " -"or a 10-tuple; the first 9 elements make up a tuple that can be passed " -"directly to :func:`time.mktime`, and the tenth is the offset of the date's " -"timezone from UTC (which is the official term for Greenwich Mean Time) " -"[#]_. If the input string has no timezone, the last element of the tuple " -"returned is ``None``. Note that indexes 6, 7, and 8 of the result tuple are " -"not usable." -msgstr "" - -#: ../../library/email.util.rst:126 -msgid "" -"The inverse of :func:`format_datetime`. Performs the same function as :func:" -"`parsedate`, but on success returns a :mod:`~datetime.datetime`. If the " -"input date has a timezone of ``-0000``, the ``datetime`` will be a naive " -"``datetime``, and if the date is conforming to the RFCs it will represent a " -"time in UTC but with no indication of the actual source timezone of the " -"message the date comes from. If the input date has any other valid timezone " -"offset, the ``datetime`` will be an aware ``datetime`` with the " -"corresponding a :class:`~datetime.timezone` :class:`~datetime.tzinfo`." -msgstr "" - -#: ../../library/email.util.rst:140 -msgid "" -"Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC timestamp " -"(seconds since the Epoch). If the timezone item in the tuple is ``None``, " -"assume local time." -msgstr "" - -#: ../../library/email.util.rst:147 -msgid "Returns a date string as per :rfc:`2822`, e.g.::" -msgstr "" - -#: ../../library/email.util.rst:151 -msgid "" -"Optional *timeval* if given is a floating point time value as accepted by :" -"func:`time.gmtime` and :func:`time.localtime`, otherwise the current time is " -"used." -msgstr "" - -#: ../../library/email.util.rst:155 -msgid "" -"Optional *localtime* is a flag that when ``True``, interprets *timeval*, and " -"returns a date relative to the local timezone instead of UTC, properly " -"taking daylight savings time into account. The default is ``False`` meaning " -"UTC is used." -msgstr "" - -#: ../../library/email.util.rst:160 -msgid "" -"Optional *usegmt* is a flag that when ``True``, outputs a date string with " -"the timezone as an ascii string ``GMT``, rather than a numeric ``-0000``. " -"This is needed for some protocols (such as HTTP). This only applies when " -"*localtime* is ``False``. The default is ``False``." -msgstr "" - -#: ../../library/email.util.rst:168 -msgid "" -"Like ``formatdate``, but the input is a :mod:`datetime` instance. If it is " -"a naive datetime, it is assumed to be \"UTC with no information about the " -"source timezone\", and the conventional ``-0000`` is used for the timezone. " -"If it is an aware ``datetime``, then the numeric timezone offset is used. If " -"it is an aware timezone with offset zero, then *usegmt* may be set to " -"``True``, in which case the string ``GMT`` is used instead of the numeric " -"timezone offset. This provides a way to generate standards conformant HTTP " -"date headers." -msgstr "" - -#: ../../library/email.util.rst:182 -msgid "Decode the string *s* according to :rfc:`2231`." -msgstr "" - -#: ../../library/email.util.rst:187 -msgid "" -"Encode the string *s* according to :rfc:`2231`. Optional *charset* and " -"*language*, if given is the character set name and language name to use. If " -"neither is given, *s* is returned as-is. If *charset* is given but " -"*language* is not, the string is encoded using the empty string for " -"*language*." -msgstr "" - -#: ../../library/email.util.rst:195 -msgid "" -"When a header parameter is encoded in :rfc:`2231` format, :meth:`Message." -"get_param ` may return a 3-tuple containing " -"the character set, language, and value. :func:`collapse_rfc2231_value` " -"turns this into a unicode string. Optional *errors* is passed to the " -"*errors* argument of :class:`str`'s :func:`~str.encode` method; it defaults " -"to ``'replace'``. Optional *fallback_charset* specifies the character set " -"to use if the one in the :rfc:`2231` header is not known by Python; it " -"defaults to ``'us-ascii'``." -msgstr "" - -#: ../../library/email.util.rst:204 -msgid "" -"For convenience, if the *value* passed to :func:`collapse_rfc2231_value` is " -"not a tuple, it should be a string and it is returned unquoted." -msgstr "" - -#: ../../library/email.util.rst:210 -msgid "" -"Decode parameters list according to :rfc:`2231`. *params* is a sequence of " -"2-tuples containing elements of the form ``(content-type, string-value)``." -msgstr "" - -#: ../../library/email.util.rst:215 -msgid "Footnotes" -msgstr "註解" - -#: ../../library/email.util.rst:216 -msgid "" -"Note that the sign of the timezone offset is the opposite of the sign of the " -"``time.timezone`` variable for the same timezone; the latter variable " -"follows the POSIX standard while this module follows :rfc:`2822`." -msgstr "" diff --git a/library/formatter.po b/library/formatter.po deleted file mode 100644 index 7b7fe703e5..0000000000 --- a/library/formatter.po +++ /dev/null @@ -1,385 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2015-12-09 17:51+0000\n" -"Last-Translator: Liang-Bo Wang \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/formatter.rst:2 -msgid ":mod:`formatter` --- Generic output formatting" -msgstr "" - -#: ../../library/formatter.rst:8 -msgid "Due to lack of usage, the formatter module has been deprecated." -msgstr "" - -#: ../../library/formatter.rst:13 -msgid "" -"This module supports two interface definitions, each with multiple " -"implementations: The *formatter* interface, and the *writer* interface which " -"is required by the formatter interface." -msgstr "" - -#: ../../library/formatter.rst:17 -msgid "" -"Formatter objects transform an abstract flow of formatting events into " -"specific output events on writer objects. Formatters manage several stack " -"structures to allow various properties of a writer object to be changed and " -"restored; writers need not be able to handle relative changes nor any sort " -"of \"change back\" operation. Specific writer properties which may be " -"controlled via formatter objects are horizontal alignment, font, and left " -"margin indentations. A mechanism is provided which supports providing " -"arbitrary, non-exclusive style settings to a writer as well. Additional " -"interfaces facilitate formatting events which are not reversible, such as " -"paragraph separation." -msgstr "" - -#: ../../library/formatter.rst:27 -msgid "" -"Writer objects encapsulate device interfaces. Abstract devices, such as " -"file formats, are supported as well as physical devices. The provided " -"implementations all work with abstract devices. The interface makes " -"available mechanisms for setting the properties which formatter objects " -"manage and inserting data into the output." -msgstr "" - -#: ../../library/formatter.rst:37 -msgid "The Formatter Interface" -msgstr "" - -#: ../../library/formatter.rst:39 -msgid "" -"Interfaces to create formatters are dependent on the specific formatter " -"class being instantiated. The interfaces described below are the required " -"interfaces which all formatters must support once initialized." -msgstr "" - -#: ../../library/formatter.rst:43 -msgid "One data element is defined at the module level:" -msgstr "" - -#: ../../library/formatter.rst:48 -msgid "" -"Value which can be used in the font specification passed to the " -"``push_font()`` method described below, or as the new value to any other " -"``push_property()`` method. Pushing the ``AS_IS`` value allows the " -"corresponding ``pop_property()`` method to be called without having to track " -"whether the property was changed." -msgstr "" - -#: ../../library/formatter.rst:53 -msgid "The following attributes are defined for formatter instance objects:" -msgstr "" - -#: ../../library/formatter.rst:58 -msgid "The writer instance with which the formatter interacts." -msgstr "" - -#: ../../library/formatter.rst:63 -msgid "" -"Close any open paragraphs and insert at least *blanklines* before the next " -"paragraph." -msgstr "" - -#: ../../library/formatter.rst:69 -msgid "" -"Add a hard line break if one does not already exist. This does not break " -"the logical paragraph." -msgstr "" - -#: ../../library/formatter.rst:75 -msgid "" -"Insert a horizontal rule in the output. A hard break is inserted if there " -"is data in the current paragraph, but the logical paragraph is not broken. " -"The arguments and keywords are passed on to the writer's :meth:" -"`send_line_break` method." -msgstr "" - -#: ../../library/formatter.rst:83 -msgid "" -"Provide data which should be formatted with collapsed whitespace. Whitespace " -"from preceding and successive calls to :meth:`add_flowing_data` is " -"considered as well when the whitespace collapse is performed. The data " -"which is passed to this method is expected to be word-wrapped by the output " -"device. Note that any word-wrapping still must be performed by the writer " -"object due to the need to rely on device and font information." -msgstr "" - -#: ../../library/formatter.rst:93 -msgid "" -"Provide data which should be passed to the writer unchanged. Whitespace, " -"including newline and tab characters, are considered legal in the value of " -"*data*." -msgstr "" - -#: ../../library/formatter.rst:100 -msgid "" -"Insert a label which should be placed to the left of the current left " -"margin. This should be used for constructing bulleted or numbered lists. If " -"the *format* value is a string, it is interpreted as a format specification " -"for *counter*, which should be an integer. The result of this formatting " -"becomes the value of the label; if *format* is not a string it is used as " -"the label value directly. The label value is passed as the only argument to " -"the writer's :meth:`send_label_data` method. Interpretation of non-string " -"label values is dependent on the associated writer." -msgstr "" - -#: ../../library/formatter.rst:109 -msgid "" -"Format specifications are strings which, in combination with a counter " -"value, are used to compute label values. Each character in the format " -"string is copied to the label value, with some characters recognized to " -"indicate a transform on the counter value. Specifically, the character " -"``'1'`` represents the counter value formatter as an Arabic number, the " -"characters ``'A'`` and ``'a'`` represent alphabetic representations of the " -"counter value in upper and lower case, respectively, and ``'I'`` and ``'i'`` " -"represent the counter value in Roman numerals, in upper and lower case. " -"Note that the alphabetic and roman transforms require that the counter value " -"be greater than zero." -msgstr "" - -#: ../../library/formatter.rst:122 -msgid "" -"Send any pending whitespace buffered from a previous call to :meth:" -"`add_flowing_data` to the associated writer object. This should be called " -"before any direct manipulation of the writer object." -msgstr "" - -#: ../../library/formatter.rst:129 -msgid "" -"Push a new alignment setting onto the alignment stack. This may be :const:" -"`AS_IS` if no change is desired. If the alignment value is changed from the " -"previous setting, the writer's :meth:`new_alignment` method is called with " -"the *align* value." -msgstr "" - -#: ../../library/formatter.rst:137 -msgid "Restore the previous alignment." -msgstr "" - -#: ../../library/formatter.rst:142 -msgid "" -"Change some or all font properties of the writer object. Properties which " -"are not set to :const:`AS_IS` are set to the values passed in while others " -"are maintained at their current settings. The writer's :meth:`new_font` " -"method is called with the fully resolved font specification." -msgstr "" - -#: ../../library/formatter.rst:150 -msgid "Restore the previous font." -msgstr "" - -#: ../../library/formatter.rst:155 -msgid "" -"Increase the number of left margin indentations by one, associating the " -"logical tag *margin* with the new indentation. The initial margin level is " -"``0``. Changed values of the logical tag must be true values; false values " -"other than :const:`AS_IS` are not sufficient to change the margin." -msgstr "" - -#: ../../library/formatter.rst:163 -msgid "Restore the previous margin." -msgstr "" - -#: ../../library/formatter.rst:168 -msgid "" -"Push any number of arbitrary style specifications. All styles are pushed " -"onto the styles stack in order. A tuple representing the entire stack, " -"including :const:`AS_IS` values, is passed to the writer's :meth:" -"`new_styles` method." -msgstr "" - -#: ../../library/formatter.rst:175 -msgid "" -"Pop the last *n* style specifications passed to :meth:`push_style`. A tuple " -"representing the revised stack, including :const:`AS_IS` values, is passed " -"to the writer's :meth:`new_styles` method." -msgstr "" - -#: ../../library/formatter.rst:182 -msgid "Set the spacing style for the writer." -msgstr "" - -#: ../../library/formatter.rst:187 -msgid "" -"Inform the formatter that data has been added to the current paragraph out-" -"of-band. This should be used when the writer has been manipulated " -"directly. The optional *flag* argument can be set to false if the writer " -"manipulations produced a hard line break at the end of the output." -msgstr "" - -#: ../../library/formatter.rst:196 -msgid "Formatter Implementations" -msgstr "" - -#: ../../library/formatter.rst:198 -msgid "" -"Two implementations of formatter objects are provided by this module. Most " -"applications may use one of these classes without modification or " -"subclassing." -msgstr "" - -#: ../../library/formatter.rst:204 -msgid "" -"A formatter which does nothing. If *writer* is omitted, a :class:" -"`NullWriter` instance is created. No methods of the writer are called by :" -"class:`NullFormatter` instances. Implementations should inherit from this " -"class if implementing a writer interface but don't need to inherit any " -"implementation." -msgstr "" - -#: ../../library/formatter.rst:213 -msgid "" -"The standard formatter. This implementation has demonstrated wide " -"applicability to many writers, and may be used directly in most " -"circumstances. It has been used to implement a full-featured World Wide Web " -"browser." -msgstr "" - -#: ../../library/formatter.rst:221 -msgid "The Writer Interface" -msgstr "" - -#: ../../library/formatter.rst:223 -msgid "" -"Interfaces to create writers are dependent on the specific writer class " -"being instantiated. The interfaces described below are the required " -"interfaces which all writers must support once initialized. Note that while " -"most applications can use the :class:`AbstractFormatter` class as a " -"formatter, the writer must typically be provided by the application." -msgstr "" - -#: ../../library/formatter.rst:232 -msgid "Flush any buffered output or device control events." -msgstr "" - -#: ../../library/formatter.rst:237 -msgid "" -"Set the alignment style. The *align* value can be any object, but by " -"convention is a string or ``None``, where ``None`` indicates that the " -"writer's \"preferred\" alignment should be used. Conventional *align* values " -"are ``'left'``, ``'center'``, ``'right'``, and ``'justify'``." -msgstr "" - -#: ../../library/formatter.rst:245 -msgid "" -"Set the font style. The value of *font* will be ``None``, indicating that " -"the device's default font should be used, or a tuple of the form ``(size, " -"italic, bold, teletype)``. Size will be a string indicating the size of " -"font that should be used; specific strings and their interpretation must be " -"defined by the application. The *italic*, *bold*, and *teletype* values are " -"Boolean values specifying which of those font attributes should be used." -msgstr "" - -#: ../../library/formatter.rst:255 -msgid "" -"Set the margin level to the integer *level* and the logical tag to *margin*. " -"Interpretation of the logical tag is at the writer's discretion; the only " -"restriction on the value of the logical tag is that it not be a false value " -"for non-zero values of *level*." -msgstr "" - -#: ../../library/formatter.rst:263 -msgid "Set the spacing style to *spacing*." -msgstr "" - -#: ../../library/formatter.rst:268 -msgid "" -"Set additional styles. The *styles* value is a tuple of arbitrary values; " -"the value :const:`AS_IS` should be ignored. The *styles* tuple may be " -"interpreted either as a set or as a stack depending on the requirements of " -"the application and writer implementation." -msgstr "" - -#: ../../library/formatter.rst:276 -msgid "Break the current line." -msgstr "" - -#: ../../library/formatter.rst:281 -msgid "" -"Produce a paragraph separation of at least *blankline* blank lines, or the " -"equivalent. The *blankline* value will be an integer. Note that the " -"implementation will receive a call to :meth:`send_line_break` before this " -"call if a line break is needed; this method should not include ending the " -"last line of the paragraph. It is only responsible for vertical spacing " -"between paragraphs." -msgstr "" - -#: ../../library/formatter.rst:291 -msgid "" -"Display a horizontal rule on the output device. The arguments to this " -"method are entirely application- and writer-specific, and should be " -"interpreted with care. The method implementation may assume that a line " -"break has already been issued via :meth:`send_line_break`." -msgstr "" - -#: ../../library/formatter.rst:299 -msgid "" -"Output character data which may be word-wrapped and re-flowed as needed. " -"Within any sequence of calls to this method, the writer may assume that " -"spans of multiple whitespace characters have been collapsed to single space " -"characters." -msgstr "" - -#: ../../library/formatter.rst:306 -msgid "" -"Output character data which has already been formatted for display. " -"Generally, this should be interpreted to mean that line breaks indicated by " -"newline characters should be preserved and no new line breaks should be " -"introduced. The data may contain embedded newline and tab characters, " -"unlike data provided to the :meth:`send_formatted_data` interface." -msgstr "" - -#: ../../library/formatter.rst:315 -msgid "" -"Set *data* to the left of the current left margin, if possible. The value of " -"*data* is not restricted; treatment of non-string values is entirely " -"application- and writer-dependent. This method will only be called at the " -"beginning of a line." -msgstr "" - -#: ../../library/formatter.rst:324 -msgid "Writer Implementations" -msgstr "" - -#: ../../library/formatter.rst:326 -msgid "" -"Three implementations of the writer object interface are provided as " -"examples by this module. Most applications will need to derive new writer " -"classes from the :class:`NullWriter` class." -msgstr "" - -#: ../../library/formatter.rst:333 -msgid "" -"A writer which only provides the interface definition; no actions are taken " -"on any methods. This should be the base class for all writers which do not " -"need to inherit any implementation methods." -msgstr "" - -#: ../../library/formatter.rst:340 -msgid "" -"A writer which can be used in debugging formatters, but not much else. Each " -"method simply announces itself by printing its name and arguments on " -"standard output." -msgstr "" - -#: ../../library/formatter.rst:347 -msgid "" -"Simple writer class which writes output on the :term:`file object` passed in " -"as *file* or, if *file* is omitted, on standard output. The output is " -"simply word-wrapped to the number of columns specified by *maxcol*. This " -"class is suitable for reflowing a sequence of paragraphs." -msgstr "" diff --git a/library/fpectl.po b/library/fpectl.po deleted file mode 100644 index 19825d18f1..0000000000 --- a/library/fpectl.po +++ /dev/null @@ -1,128 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-26 18:47+0800\n" -"PO-Revision-Date: 2015-12-09 17:51+0000\n" -"Last-Translator: Liang-Bo Wang \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/fpectl.rst:2 -msgid ":mod:`fpectl` --- Floating point exception control" -msgstr "" - -#: ../../library/fpectl.rst:13 -msgid "" -"The :mod:`fpectl` module is not built by default, and its usage is " -"discouraged and may be dangerous except in the hands of experts. See also " -"the section :ref:`fpectl-limitations` on limitations for more details." -msgstr "" - -#: ../../library/fpectl.rst:21 -msgid "" -"Most computers carry out floating point operations in conformance with the " -"so-called IEEE-754 standard. On any real computer, some floating point " -"operations produce results that cannot be expressed as a normal floating " -"point value. For example, try ::" -msgstr "" - -#: ../../library/fpectl.rst:32 -msgid "" -"(The example above will work on many platforms. DEC Alpha may be one " -"exception.) \"Inf\" is a special, non-numeric value in IEEE-754 that stands " -"for \"infinity\", and \"nan\" means \"not a number.\" Note that, other than " -"the non-numeric results, nothing special happened when you asked Python to " -"carry out those calculations. That is in fact the default behaviour " -"prescribed in the IEEE-754 standard, and if it works for you, stop reading " -"now." -msgstr "" - -#: ../../library/fpectl.rst:39 -msgid "" -"In some circumstances, it would be better to raise an exception and stop " -"processing at the point where the faulty operation was attempted. The :mod:" -"`fpectl` module is for use in that situation. It provides control over " -"floating point units from several hardware manufacturers, allowing the user " -"to turn on the generation of :const:`SIGFPE` whenever any of the IEEE-754 " -"exceptions Division by Zero, Overflow, or Invalid Operation occurs. In " -"tandem with a pair of wrapper macros that are inserted into the C code " -"comprising your python system, :const:`SIGFPE` is trapped and converted into " -"the Python :exc:`FloatingPointError` exception." -msgstr "" - -#: ../../library/fpectl.rst:49 -msgid "" -"The :mod:`fpectl` module defines the following functions and may raise the " -"given exception:" -msgstr "" - -#: ../../library/fpectl.rst:55 -msgid "" -"Turn on the generation of :const:`SIGFPE`, and set up an appropriate signal " -"handler." -msgstr "" - -#: ../../library/fpectl.rst:61 -msgid "Reset default handling of floating point exceptions." -msgstr "" - -#: ../../library/fpectl.rst:66 -msgid "" -"After :func:`turnon_sigfpe` has been executed, a floating point operation " -"that raises one of the IEEE-754 exceptions Division by Zero, Overflow, or " -"Invalid operation will in turn raise this standard Python exception." -msgstr "" - -#: ../../library/fpectl.rst:74 -msgid "Example" -msgstr "" - -#: ../../library/fpectl.rst:76 -msgid "" -"The following example demonstrates how to start up and test operation of " -"the :mod:`fpectl` module. ::" -msgstr "" - -#: ../../library/fpectl.rst:99 -msgid "Limitations and other considerations" -msgstr "" - -#: ../../library/fpectl.rst:101 -msgid "" -"Setting up a given processor to trap IEEE-754 floating point errors " -"currently requires custom code on a per-architecture basis. You may have to " -"modify :mod:`fpectl` to control your particular hardware." -msgstr "" - -#: ../../library/fpectl.rst:105 -msgid "" -"Conversion of an IEEE-754 exception to a Python exception requires that the " -"wrapper macros ``PyFPE_START_PROTECT`` and ``PyFPE_END_PROTECT`` be inserted " -"into your code in an appropriate fashion. Python itself has been modified " -"to support the :mod:`fpectl` module, but many other codes of interest to " -"numerical analysts have not." -msgstr "" - -#: ../../library/fpectl.rst:111 -msgid "The :mod:`fpectl` module is not thread-safe." -msgstr "" - -#: ../../library/fpectl.rst:116 -msgid "" -"Some files in the source distribution may be interesting in learning more " -"about how this module operates. The include file :file:`Include/pyfpe.h` " -"discusses the implementation of this module at some length. :file:`Modules/" -"fpetestmodule.c` gives several examples of use. Many additional examples can " -"be found in :file:`Objects/floatobject.c`." -msgstr "" diff --git a/library/macpath.po b/library/macpath.po deleted file mode 100644 index 02a375138a..0000000000 --- a/library/macpath.po +++ /dev/null @@ -1,42 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2016-11-19 00:32+0000\n" -"Last-Translator: Liang-Bo Wang \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/macpath.rst:2 -msgid ":mod:`macpath` --- Mac OS 9 path manipulation functions" -msgstr "" - -#: ../../library/macpath.rst:7 -msgid "**Source code:** :source:`Lib/macpath.py`" -msgstr "" - -#: ../../library/macpath.rst:13 -msgid "" -"This module is the Mac OS 9 (and earlier) implementation of the :mod:`os." -"path` module. It can be used to manipulate old-style Macintosh pathnames on " -"Mac OS X (or any other platform)." -msgstr "" - -#: ../../library/macpath.rst:17 -msgid "" -"The following functions are available in this module: :func:`normcase`, :" -"func:`normpath`, :func:`isabs`, :func:`join`, :func:`split`, :func:`isdir`, :" -"func:`isfile`, :func:`walk`, :func:`exists`. For other functions available " -"in :mod:`os.path` dummy counterparts are available." -msgstr "" diff --git a/library/misc.po b/library/misc.po deleted file mode 100644 index 533284983e..0000000000 --- a/library/misc.po +++ /dev/null @@ -1,29 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2015-12-09 17:51+0000\n" -"Last-Translator: Liang-Bo Wang \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/misc.rst:5 -msgid "Miscellaneous Services" -msgstr "" - -#: ../../library/misc.rst:7 -msgid "" -"The modules described in this chapter provide miscellaneous services that " -"are available in all Python versions. Here's an overview:" -msgstr "" diff --git a/library/othergui.po b/library/othergui.po deleted file mode 100644 index 3cb79bb0fa..0000000000 --- a/library/othergui.po +++ /dev/null @@ -1,107 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -# Leon H., 2017 -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-06-20 18:08+0800\n" -"PO-Revision-Date: 2018-05-23 16:07+0000\n" -"Last-Translator: Adrian Liaw \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/othergui.rst:4 -msgid "Other Graphical User Interface Packages" -msgstr "其它的 GUI " - -#: ../../library/othergui.rst:6 -msgid "" -"Major cross-platform (Windows, Mac OS X, Unix-like) GUI toolkits are " -"available for Python:" -msgstr "" - -#: ../../library/othergui.rst:17 -msgid "`PyGObject `_" -msgstr "`PyGObject `_" - -#: ../../library/othergui.rst:12 -msgid "" -"PyGObject provides introspection bindings for C libraries using `GObject " -"`_. One of these libraries is " -"the `GTK+ 3 `_ widget set. GTK+ comes with many more " -"widgets than Tkinter provides. An online `Python GTK+ 3 Tutorial `_ is available." -msgstr "" - -#: ../../library/othergui.rst:24 -msgid "`PyGTK `_" -msgstr "`PyGTK `_" - -#: ../../library/othergui.rst:20 -msgid "" -"PyGTK provides bindings for an older version of the library, GTK+ 2. It " -"provides an object oriented interface that is slightly higher level than the " -"C one. There are also bindings to `GNOME `_. An " -"online `tutorial `_ is " -"available." -msgstr "" - -#: ../../library/othergui.rst:31 -msgid "`PyQt `_" -msgstr "`PyQt `_" - -#: ../../library/othergui.rst:27 -msgid "" -"PyQt is a :program:`sip`\\ -wrapped binding to the Qt toolkit. Qt is an " -"extensive C++ GUI application development framework that is available for " -"Unix, Windows and Mac OS X. :program:`sip` is a tool for generating bindings " -"for C++ libraries as Python classes, and is specifically designed for Python." -msgstr "" - -#: ../../library/othergui.rst:37 -msgid "`PySide2 `_" -msgstr "`PySide2 `_" - -#: ../../library/othergui.rst:34 -msgid "" -"Also known as the Qt for Python project, PySide2 is a newer binding to the " -"Qt toolkit. It is provided by The Qt Company and aims to provide a complete " -"port of PySide to Qt 5. Compared to PyQt, its licensing scheme is friendlier " -"to non-open source applications." -msgstr "" - -#: ../../library/othergui.rst:48 -msgid "`wxPython `_" -msgstr "`wxPython `_" - -#: ../../library/othergui.rst:40 -msgid "" -"wxPython is a cross-platform GUI toolkit for Python that is built around the " -"popular `wxWidgets `_ (formerly wxWindows) C++ " -"toolkit. It provides a native look and feel for applications on Windows, " -"Mac OS X, and Unix systems by using each platform's native widgets where " -"ever possible, (GTK+ on Unix-like systems). In addition to an extensive set " -"of widgets, wxPython provides classes for online documentation and context " -"sensitive help, printing, HTML viewing, low-level device context drawing, " -"drag and drop, system clipboard access, an XML-based resource format and " -"more, including an ever growing library of user-contributed modules." -msgstr "" - -#: ../../library/othergui.rst:51 -msgid "" -"PyGTK, PyQt, PySide2, and wxPython, all have a modern look and feel and more " -"widgets than Tkinter. In addition, there are many other GUI toolkits for " -"Python, both cross-platform, and platform-specific. See the `GUI Programming " -"`_ page in the Python Wiki for " -"a much more complete list, and also for links to documents where the " -"different GUI toolkits are compared." -msgstr "" diff --git a/library/parser.po b/library/parser.po deleted file mode 100644 index b03cd50591..0000000000 --- a/library/parser.po +++ /dev/null @@ -1,395 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-06-20 18:08+0800\n" -"PO-Revision-Date: 2016-01-31 07:23+0000\n" -"Last-Translator: Liang-Bo Wang \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/parser.rst:2 -msgid ":mod:`parser` --- Access Python parse trees" -msgstr "" - -#: ../../library/parser.rst:21 -msgid "" -"The :mod:`parser` module provides an interface to Python's internal parser " -"and byte-code compiler. The primary purpose for this interface is to allow " -"Python code to edit the parse tree of a Python expression and create " -"executable code from this. This is better than trying to parse and modify " -"an arbitrary Python code fragment as a string because parsing is performed " -"in a manner identical to the code forming the application. It is also " -"faster." -msgstr "" - -#: ../../library/parser.rst:30 -msgid "" -"The parser module is deprecated and will be removed in future versions of " -"Python. For the majority of use cases you can leverage the Abstract Syntax " -"Tree (AST) generation and compilation stage, using the :mod:`ast` module." -msgstr "" - -#: ../../library/parser.rst:34 -msgid "" -"There are a few things to note about this module which are important to " -"making use of the data structures created. This is not a tutorial on " -"editing the parse trees for Python code, but some examples of using the :mod:" -"`parser` module are presented." -msgstr "" - -#: ../../library/parser.rst:39 -msgid "" -"Most importantly, a good understanding of the Python grammar processed by " -"the internal parser is required. For full information on the language " -"syntax, refer to :ref:`reference-index`. The parser itself is created from " -"a grammar specification defined in the file :file:`Grammar/Grammar` in the " -"standard Python distribution. The parse trees stored in the ST objects " -"created by this module are the actual output from the internal parser when " -"created by the :func:`expr` or :func:`suite` functions, described below. " -"The ST objects created by :func:`sequence2st` faithfully simulate those " -"structures. Be aware that the values of the sequences which are considered " -"\"correct\" will vary from one version of Python to another as the formal " -"grammar for the language is revised. However, transporting code from one " -"Python version to another as source text will always allow correct parse " -"trees to be created in the target version, with the only restriction being " -"that migrating to an older version of the interpreter will not support more " -"recent language constructs. The parse trees are not typically compatible " -"from one version to another, though source code has usually been forward-" -"compatible within a major release series." -msgstr "" - -#: ../../library/parser.rst:57 -msgid "" -"Each element of the sequences returned by :func:`st2list` or :func:" -"`st2tuple` has a simple form. Sequences representing non-terminal elements " -"in the grammar always have a length greater than one. The first element is " -"an integer which identifies a production in the grammar. These integers are " -"given symbolic names in the C header file :file:`Include/graminit.h` and the " -"Python module :mod:`symbol`. Each additional element of the sequence " -"represents a component of the production as recognized in the input string: " -"these are always sequences which have the same form as the parent. An " -"important aspect of this structure which should be noted is that keywords " -"used to identify the parent node type, such as the keyword :keyword:`if` in " -"an :const:`if_stmt`, are included in the node tree without any special " -"treatment. For example, the :keyword:`!if` keyword is represented by the " -"tuple ``(1, 'if')``, where ``1`` is the numeric value associated with all :" -"const:`NAME` tokens, including variable and function names defined by the " -"user. In an alternate form returned when line number information is " -"requested, the same token might be represented as ``(1, 'if', 12)``, where " -"the ``12`` represents the line number at which the terminal symbol was found." -msgstr "" - -#: ../../library/parser.rst:74 -msgid "" -"Terminal elements are represented in much the same way, but without any " -"child elements and the addition of the source text which was identified. " -"The example of the :keyword:`if` keyword above is representative. The " -"various types of terminal symbols are defined in the C header file :file:" -"`Include/token.h` and the Python module :mod:`token`." -msgstr "" - -#: ../../library/parser.rst:80 -msgid "" -"The ST objects are not required to support the functionality of this module, " -"but are provided for three purposes: to allow an application to amortize the " -"cost of processing complex parse trees, to provide a parse tree " -"representation which conserves memory space when compared to the Python list " -"or tuple representation, and to ease the creation of additional modules in C " -"which manipulate parse trees. A simple \"wrapper\" class may be created in " -"Python to hide the use of ST objects." -msgstr "" - -#: ../../library/parser.rst:88 -msgid "" -"The :mod:`parser` module defines functions for a few distinct purposes. The " -"most important purposes are to create ST objects and to convert ST objects " -"to other representations such as parse trees and compiled code objects, but " -"there are also functions which serve to query the type of parse tree " -"represented by an ST object." -msgstr "" - -#: ../../library/parser.rst:98 -msgid "Module :mod:`symbol`" -msgstr "" - -#: ../../library/parser.rst:98 -msgid "Useful constants representing internal nodes of the parse tree." -msgstr "" - -#: ../../library/parser.rst:101 -msgid "Module :mod:`token`" -msgstr "" - -#: ../../library/parser.rst:101 -msgid "" -"Useful constants representing leaf nodes of the parse tree and functions for " -"testing node values." -msgstr "" - -#: ../../library/parser.rst:108 -msgid "Creating ST Objects" -msgstr "" - -#: ../../library/parser.rst:110 -msgid "" -"ST objects may be created from source code or from a parse tree. When " -"creating an ST object from source, different functions are used to create " -"the ``'eval'`` and ``'exec'`` forms." -msgstr "" - -#: ../../library/parser.rst:117 -msgid "" -"The :func:`expr` function parses the parameter *source* as if it were an " -"input to ``compile(source, 'file.py', 'eval')``. If the parse succeeds, an " -"ST object is created to hold the internal parse tree representation, " -"otherwise an appropriate exception is raised." -msgstr "" - -#: ../../library/parser.rst:125 -msgid "" -"The :func:`suite` function parses the parameter *source* as if it were an " -"input to ``compile(source, 'file.py', 'exec')``. If the parse succeeds, an " -"ST object is created to hold the internal parse tree representation, " -"otherwise an appropriate exception is raised." -msgstr "" - -#: ../../library/parser.rst:133 -msgid "" -"This function accepts a parse tree represented as a sequence and builds an " -"internal representation if possible. If it can validate that the tree " -"conforms to the Python grammar and all nodes are valid node types in the " -"host version of Python, an ST object is created from the internal " -"representation and returned to the called. If there is a problem creating " -"the internal representation, or if the tree cannot be validated, a :exc:" -"`ParserError` exception is raised. An ST object created this way should not " -"be assumed to compile correctly; normal exceptions raised by compilation may " -"still be initiated when the ST object is passed to :func:`compilest`. This " -"may indicate problems not related to syntax (such as a :exc:`MemoryError` " -"exception), but may also be due to constructs such as the result of parsing " -"``del f(0)``, which escapes the Python parser but is checked by the bytecode " -"compiler." -msgstr "" - -#: ../../library/parser.rst:146 -msgid "" -"Sequences representing terminal tokens may be represented as either two-" -"element lists of the form ``(1, 'name')`` or as three-element lists of the " -"form ``(1, 'name', 56)``. If the third element is present, it is assumed to " -"be a valid line number. The line number may be specified for any subset of " -"the terminal symbols in the input tree." -msgstr "" - -#: ../../library/parser.rst:155 -msgid "" -"This is the same function as :func:`sequence2st`. This entry point is " -"maintained for backward compatibility." -msgstr "" - -#: ../../library/parser.rst:162 -msgid "Converting ST Objects" -msgstr "" - -#: ../../library/parser.rst:164 -msgid "" -"ST objects, regardless of the input used to create them, may be converted to " -"parse trees represented as list- or tuple- trees, or may be compiled into " -"executable code objects. Parse trees may be extracted with or without line " -"numbering information." -msgstr "" - -#: ../../library/parser.rst:172 -msgid "" -"This function accepts an ST object from the caller in *st* and returns a " -"Python list representing the equivalent parse tree. The resulting list " -"representation can be used for inspection or the creation of a new parse " -"tree in list form. This function does not fail so long as memory is " -"available to build the list representation. If the parse tree will only be " -"used for inspection, :func:`st2tuple` should be used instead to reduce " -"memory consumption and fragmentation. When the list representation is " -"required, this function is significantly faster than retrieving a tuple " -"representation and converting that to nested lists." -msgstr "" - -#: ../../library/parser.rst:182 -msgid "" -"If *line_info* is true, line number information will be included for all " -"terminal tokens as a third element of the list representing the token. Note " -"that the line number provided specifies the line on which the token *ends*. " -"This information is omitted if the flag is false or omitted." -msgstr "" - -#: ../../library/parser.rst:190 -msgid "" -"This function accepts an ST object from the caller in *st* and returns a " -"Python tuple representing the equivalent parse tree. Other than returning a " -"tuple instead of a list, this function is identical to :func:`st2list`." -msgstr "" - -#: ../../library/parser.rst:194 -msgid "" -"If *line_info* is true, line number information will be included for all " -"terminal tokens as a third element of the list representing the token. This " -"information is omitted if the flag is false or omitted." -msgstr "" - -#: ../../library/parser.rst:205 -msgid "" -"The Python byte compiler can be invoked on an ST object to produce code " -"objects which can be used as part of a call to the built-in :func:`exec` or :" -"func:`eval` functions. This function provides the interface to the compiler, " -"passing the internal parse tree from *st* to the parser, using the source " -"file name specified by the *filename* parameter. The default value supplied " -"for *filename* indicates that the source was an ST object." -msgstr "" - -#: ../../library/parser.rst:212 -msgid "" -"Compiling an ST object may result in exceptions related to compilation; an " -"example would be a :exc:`SyntaxError` caused by the parse tree for ``del " -"f(0)``: this statement is considered legal within the formal grammar for " -"Python but is not a legal language construct. The :exc:`SyntaxError` raised " -"for this condition is actually generated by the Python byte-compiler " -"normally, which is why it can be raised at this point by the :mod:`parser` " -"module. Most causes of compilation failure can be diagnosed " -"programmatically by inspection of the parse tree." -msgstr "" - -#: ../../library/parser.rst:225 -msgid "Queries on ST Objects" -msgstr "" - -#: ../../library/parser.rst:227 -msgid "" -"Two functions are provided which allow an application to determine if an ST " -"was created as an expression or a suite. Neither of these functions can be " -"used to determine if an ST was created from source code via :func:`expr` or :" -"func:`suite` or from a parse tree via :func:`sequence2st`." -msgstr "" - -#: ../../library/parser.rst:237 -msgid "" -"When *st* represents an ``'eval'`` form, this function returns ``True``, " -"otherwise it returns ``False``. This is useful, since code objects normally " -"cannot be queried for this information using existing built-in functions. " -"Note that the code objects created by :func:`compilest` cannot be queried " -"like this either, and are identical to those created by the built-in :func:" -"`compile` function." -msgstr "" - -#: ../../library/parser.rst:246 -msgid "" -"This function mirrors :func:`isexpr` in that it reports whether an ST object " -"represents an ``'exec'`` form, commonly known as a \"suite.\" It is not " -"safe to assume that this function is equivalent to ``not isexpr(st)``, as " -"additional syntactic fragments may be supported in the future." -msgstr "" - -#: ../../library/parser.rst:255 -msgid "Exceptions and Error Handling" -msgstr "" - -#: ../../library/parser.rst:257 -msgid "" -"The parser module defines a single exception, but may also pass other built-" -"in exceptions from other portions of the Python runtime environment. See " -"each function for information about the exceptions it can raise." -msgstr "" - -#: ../../library/parser.rst:264 -msgid "" -"Exception raised when a failure occurs within the parser module. This is " -"generally produced for validation failures rather than the built-in :exc:" -"`SyntaxError` raised during normal parsing. The exception argument is either " -"a string describing the reason of the failure or a tuple containing a " -"sequence causing the failure from a parse tree passed to :func:`sequence2st` " -"and an explanatory string. Calls to :func:`sequence2st` need to be able to " -"handle either type of exception, while calls to other functions in the " -"module will only need to be aware of the simple string values." -msgstr "" - -#: ../../library/parser.rst:273 -msgid "" -"Note that the functions :func:`compilest`, :func:`expr`, and :func:`suite` " -"may raise exceptions which are normally raised by the parsing and " -"compilation process. These include the built in exceptions :exc:" -"`MemoryError`, :exc:`OverflowError`, :exc:`SyntaxError`, and :exc:" -"`SystemError`. In these cases, these exceptions carry all the meaning " -"normally associated with them. Refer to the descriptions of each function " -"for detailed information." -msgstr "" - -#: ../../library/parser.rst:284 -msgid "ST Objects" -msgstr "" - -#: ../../library/parser.rst:286 -msgid "" -"Ordered and equality comparisons are supported between ST objects. Pickling " -"of ST objects (using the :mod:`pickle` module) is also supported." -msgstr "" - -#: ../../library/parser.rst:292 -msgid "" -"The type of the objects returned by :func:`expr`, :func:`suite` and :func:" -"`sequence2st`." -msgstr "" - -#: ../../library/parser.rst:295 -msgid "ST objects have the following methods:" -msgstr "" - -#: ../../library/parser.rst:300 -msgid "Same as ``compilest(st, filename)``." -msgstr "" - -#: ../../library/parser.rst:305 -msgid "Same as ``isexpr(st)``." -msgstr "" - -#: ../../library/parser.rst:310 -msgid "Same as ``issuite(st)``." -msgstr "" - -#: ../../library/parser.rst:315 -msgid "Same as ``st2list(st, line_info, col_info)``." -msgstr "" - -#: ../../library/parser.rst:320 -msgid "Same as ``st2tuple(st, line_info, col_info)``." -msgstr "" - -#: ../../library/parser.rst:324 -msgid "Example: Emulation of :func:`compile`" -msgstr "" - -#: ../../library/parser.rst:326 -msgid "" -"While many useful operations may take place between parsing and bytecode " -"generation, the simplest operation is to do nothing. For this purpose, " -"using the :mod:`parser` module to produce an intermediate data structure is " -"equivalent to the code ::" -msgstr "" - -#: ../../library/parser.rst:336 -msgid "" -"The equivalent operation using the :mod:`parser` module is somewhat longer, " -"and allows the intermediate internal parse tree to be retained as an ST " -"object::" -msgstr "" - -#: ../../library/parser.rst:346 -msgid "" -"An application which needs both ST and code objects can package this code " -"into readily available functions::" -msgstr "" diff --git a/library/symbol.po b/library/symbol.po deleted file mode 100644 index 701cb976e5..0000000000 --- a/library/symbol.po +++ /dev/null @@ -1,54 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2021, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: Python 3.10\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-06-20 18:08+0800\n" -"PO-Revision-Date: 2015-12-09 17:51+0000\n" -"Last-Translator: Liang-Bo Wang \n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../library/symbol.rst:2 -msgid ":mod:`symbol` --- Constants used with Python parse trees" -msgstr "" - -#: ../../library/symbol.rst:9 -msgid "**Source code:** :source:`Lib/symbol.py`" -msgstr "" - -#: ../../library/symbol.rst:13 -msgid "" -"This module provides constants which represent the numeric values of " -"internal nodes of the parse tree. Unlike most Python constants, these use " -"lower-case names. Refer to the file :file:`Grammar/Grammar` in the Python " -"distribution for the definitions of the names in the context of the language " -"grammar. The specific numeric values which the names map to may change " -"between Python versions." -msgstr "" - -#: ../../library/symbol.rst:22 -msgid "" -"The symbol module is deprecated and will be removed in future versions of " -"Python." -msgstr "" - -#: ../../library/symbol.rst:25 -msgid "This module also provides one additional data object:" -msgstr "" - -#: ../../library/symbol.rst:30 -msgid "" -"Dictionary mapping the numeric values of the constants defined in this " -"module back to name strings, allowing more human-readable representation of " -"parse trees to be generated." -msgstr "" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy