Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sync with CPython 3.11#424

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 9 commits into3.11fromcron/sync/3.11
Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletionsc-api/complex.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
"POT-Creation-Date: 2023-06-30 15:31+0000\n"
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -148,17 +148,17 @@ msgstr ""

#: ../../c-api/complex.rst:130
msgid ""
"If *op* is not a Python complex number object but has a :meth:`__complex__`"
"method, this method will first be called to convert *op* to a Python complex "
"number object. If``__complex__()`` is not defined thenit falls back to :"
"meth:`__float__`. If``__float__()`` is notdefined then it falls back to :"
"meth:`__index__`. Upon failure, this method returns ``-1.0`` as a real "
"value."
"If *op* is not a Python complex number object but has a :meth:`~object."
"__complex__`method, this method will first be called to convert *op* to a "
"Python complexnumber object. If:meth:`!__complex__` is not defined then "
"it falls back to :meth:`~object.__float__`. If:meth:`!__float__` is not "
"defined then it falls back to :meth:`~object.__index__`. Upon failure, this "
"method returns ``-1.0`` as a realvalue."
msgstr ""

#: ../../c-api/complex.rst:137
msgid "Use :meth:`__index__` if available."
msgstr "如果可用則會使用 :meth:`__index__`。"
msgid "Use :meth:`~object.__index__` if available."
msgstr "如果可用則使用 :meth:`~object.__index__`。"

#: ../../c-api/complex.rst:8
msgid "object"
Expand Down
51 changes: 26 additions & 25 deletionsc-api/dict.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
"POT-Creation-Date: 2023-06-25 00:20+0000\n"
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -117,40 +117,41 @@ msgid ""
"``NULL`` if the key *key* is not present, but *without* setting an exception."
msgstr ""

#: ../../c-api/dict.rst:101
#: ../../c-api/dict.rst:103
msgid ""
"Note thatexceptions whichoccur whilecalling:meth:`__hash__` and :meth:"
"`__eq__` methodswill get suppressed. To get error reporting use :c:func:"
"`PyDict_GetItemWithError()` instead."
"Exceptions that occur whilethis calls:meth:`~object.__hash__` and :meth:"
"`~object.__eq__` methodsare silently ignored. Prefer the :c:func:"
"`PyDict_GetItemWithError` function instead."
msgstr ""

#: ../../c-api/dict.rst:105
#: ../../c-api/dict.rst:107
msgid ""
"Calling this API without :term:`GIL` held had been allowed for historical "
"reason. It is no longer allowed."
msgstr ""

#: ../../c-api/dict.rst:112
#: ../../c-api/dict.rst:114
msgid ""
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
"Return ``NULL`` **with** an exception set if an exception occurred. Return "
"``NULL`` **without** an exception set if the key wasn't present."
msgstr ""

#: ../../c-api/dict.rst:120
#: ../../c-api/dict.rst:122
msgid ""
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
"expr:`const char*`, rather than a :c:expr:`PyObject*`."
msgstr ""

#: ../../c-api/dict.rst:123
#: ../../c-api/dict.rst:127
msgid ""
"Note that exceptions which occur while calling :meth:`__hash__` and :meth:"
"`__eq__` methods and creating a temporary string object will get suppressed. "
"To get error reporting use :c:func:`PyDict_GetItemWithError()` instead."
"Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
"`~object.__eq__` methods or while creating the temporary :class:`str` object "
"are silently ignored. Prefer using the :c:func:`PyDict_GetItemWithError` "
"function with your own :c:func:`PyUnicode_FromString` *key* instead."
msgstr ""

#: ../../c-api/dict.rst:131
#: ../../c-api/dict.rst:136
msgid ""
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
"it returns the value corresponding to *key* from the dictionary *p*. If the "
Expand All@@ -160,29 +161,29 @@ msgid ""
"the insertion."
msgstr ""

#: ../../c-api/dict.rst:141
#: ../../c-api/dict.rst:146
msgid ""
"Return a :c:type:`PyListObject` containing all the items from the dictionary."
msgstr ""

#: ../../c-api/dict.rst:146
#: ../../c-api/dict.rst:151
msgid ""
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
msgstr ""

#: ../../c-api/dict.rst:151
#: ../../c-api/dict.rst:156
msgid ""
"Return a :c:type:`PyListObject` containing all the values from the "
"dictionary *p*."
msgstr ""

#: ../../c-api/dict.rst:159
#: ../../c-api/dict.rst:164
msgid ""
"Return the number of items in the dictionary. This is equivalent to "
"``len(p)`` on a dictionary."
msgstr ""

#: ../../c-api/dict.rst:165
#: ../../c-api/dict.rst:170
msgid ""
"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
Expand All@@ -196,21 +197,21 @@ msgid ""
"structure is sparse, the offsets are not consecutive."
msgstr ""

#: ../../c-api/dict.rst:176
#: ../../c-api/dict.rst:181
msgid "For example::"
msgstr ""
"舉例來說:\n"
"\n"
"::"

#: ../../c-api/dict.rst:186
#: ../../c-api/dict.rst:191
msgid ""
"The dictionary *p* should not be mutated during iteration. It is safe to "
"modify the values of the keys as you iterate over the dictionary, but only "
"so long as the set of keys does not change. For example::"
msgstr ""

#: ../../c-api/dict.rst:211
#: ../../c-api/dict.rst:216
msgid ""
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
Expand All@@ -220,7 +221,7 @@ msgid ""
"or ``-1`` if an exception was raised."
msgstr ""

#: ../../c-api/dict.rst:221
#: ../../c-api/dict.rst:226
msgid ""
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
Expand All@@ -229,7 +230,7 @@ msgid ""
"exception was raised."
msgstr ""

#: ../../c-api/dict.rst:230
#: ../../c-api/dict.rst:235
msgid ""
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
"*seq2* must be an iterable object producing iterable objects of length 2, "
Expand All@@ -250,10 +251,10 @@ msgstr "dictionary(字典)"
msgid "PyUnicode_FromString()"
msgstr "PyUnicode_FromString()"

#: ../../c-api/dict.rst:157
#: ../../c-api/dict.rst:162
msgid "built-in function"
msgstr "built-in function(內建函式)"

#: ../../c-api/dict.rst:157
#: ../../c-api/dict.rst:162
msgid "len"
msgstr "len"
14 changes: 7 additions & 7 deletionsc-api/float.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
"POT-Creation-Date: 2023-06-30 15:31+0000\n"
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -61,15 +61,15 @@ msgstr ""
#: ../../c-api/float.rst:47
msgid ""
"Return a C :c:expr:`double` representation of the contents of *pyfloat*. If "
"*pyfloat* is not a Python floating point object but has a :meth:`__float__`"
"method, this method will first be called to convert *pyfloat* into a float. "
"If``__float__()`` is not defined then it falls back to :meth:`__index__`."
"This method returns ``-1.0`` upon failure, so oneshould call :c:func:"
"`PyErr_Occurred` to check for errors."
"*pyfloat* is not a Python floating point object but has a :meth:`~object."
"__float__`method, this method will first be called to convert *pyfloat* "
"into a float.If:meth:`!__float__` is not defined then it falls back to :"
"meth:`~object.__index__`.This method returns ``-1.0`` upon failure, so one "
"should call :c:func:`PyErr_Occurred` to check for errors."
msgstr ""

#: ../../c-api/float.rst:54
msgid "Use :meth:`__index__` if available."
msgid "Use :meth:`~object.__index__` if available."
msgstr ""

#: ../../c-api/float.rst:60
Expand Down
22 changes: 11 additions & 11 deletionsc-api/long.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
"POT-Creation-Date: 2023-06-30 15:31+0000\n"
"PO-Revision-Date: 2018-05-23 14:06+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -140,8 +140,8 @@ msgstr ""
#: ../../c-api/long.rst:122 ../../c-api/long.rst:140
msgid ""
"Return a C :c:expr:`long` representation of *obj*. If *obj* is not an "
"instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method "
"(if present) to convert it to a :c:type:`PyLongObject`."
"instance of :c:type:`PyLongObject`, first call its :meth:`~object.__index__` "
"method(if present) to convert it to a :c:type:`PyLongObject`."
msgstr ""

#: ../../c-api/long.rst:126
Expand All@@ -157,12 +157,12 @@ msgstr ""

#: ../../c-api/long.rst:131 ../../c-api/long.rst:151 ../../c-api/long.rst:172
#: ../../c-api/long.rst:194 ../../c-api/long.rst:278 ../../c-api/long.rst:298
msgid "Use :meth:`__index__` if available."
msgid "Use :meth:`~object.__index__` if available."
msgstr ""

#: ../../c-api/long.rst:134 ../../c-api/long.rst:154 ../../c-api/long.rst:175
#: ../../c-api/long.rst:197 ../../c-api/long.rst:281 ../../c-api/long.rst:301
msgid "This function will no longer use :meth:`__int__`."
msgid "This function will no longer use :meth:`~object.__int__`."
msgstr ""

#: ../../c-api/long.rst:144
Expand All@@ -176,8 +176,8 @@ msgstr ""
#: ../../c-api/long.rst:163 ../../c-api/long.rst:181
msgid ""
"Return a C :c:expr:`long long` representation of *obj*. If *obj* is not an "
"instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method "
"(if present) to convert it to a :c:type:`PyLongObject`."
"instance of :c:type:`PyLongObject`, first call its :meth:`~object.__index__` "
"method(if present) to convert it to a :c:type:`PyLongObject`."
msgstr ""

#: ../../c-api/long.rst:167
Expand DownExpand Up@@ -268,8 +268,8 @@ msgstr ""
#: ../../c-api/long.rst:268
msgid ""
"Return a C :c:expr:`unsigned long` representation of *obj*. If *obj* is not "
"an instance of :c:type:`PyLongObject`, first call its :meth:`__index__`"
"method (if present) to convert it to a :c:type:`PyLongObject`."
"an instance of :c:type:`PyLongObject`, first call its :meth:`~object."
"__index__`method (if present) to convert it to a :c:type:`PyLongObject`."
msgstr ""

#: ../../c-api/long.rst:272
Expand All@@ -287,8 +287,8 @@ msgstr ""
#: ../../c-api/long.rst:287
msgid ""
"Return a C :c:expr:`unsigned long long` representation of *obj*. If *obj* "
"is not an instance of :c:type:`PyLongObject`, first call its :meth:"
"`__index__` method (if present) to convert it to a :c:type:`PyLongObject`."
"is not an instance of :c:type:`PyLongObject`, first call its :meth:`~object."
"__index__` method (if present) to convert it to a :c:type:`PyLongObject`."
msgstr ""

#: ../../c-api/long.rst:292
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp