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

Commit2b1e3b0

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython dbe416b8
1 parentdb09990 commit2b1e3b0

File tree

2 files changed

+95
-94
lines changed

2 files changed

+95
-94
lines changed

‎c-api/dict.po

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version:Python 3.11\n"
1111
"Report-Msgid-Bugs-To:\n"
12-
"POT-Creation-Date:2023-05-09 00:15+0000\n"
12+
"POT-Creation-Date:2023-06-25 00:20+0000\n"
1313
"PO-Revision-Date:2017-09-22 18:26+0000\n"
1414
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
1515
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -117,40 +117,41 @@ msgid ""
117117
"``NULL`` if the key *key* is not present, but *without* setting an exception."
118118
msgstr""
119119

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

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

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

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

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

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

163-
#:../../c-api/dict.rst:141
164+
#:../../c-api/dict.rst:146
164165
msgid""
165166
"Return a :c:type:`PyListObject` containing all the items from the dictionary."
166167
msgstr""
167168

168-
#:../../c-api/dict.rst:146
169+
#:../../c-api/dict.rst:151
169170
msgid""
170171
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
171172
msgstr""
172173

173-
#:../../c-api/dict.rst:151
174+
#:../../c-api/dict.rst:156
174175
msgid""
175176
"Return a :c:type:`PyListObject` containing all the values from the "
176177
"dictionary *p*."
177178
msgstr""
178179

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

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

199-
#:../../c-api/dict.rst:176
200+
#:../../c-api/dict.rst:181
200201
msgid"For example::"
201202
msgstr""
202203
"舉例來說:\n"
203204
"\n"
204205
"::"
205206

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

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

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

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

253-
#:../../c-api/dict.rst:157
254+
#:../../c-api/dict.rst:162
254255
msgid"built-in function"
255256
msgstr"built-in function(內建函式)"
256257

257-
#:../../c-api/dict.rst:157
258+
#:../../c-api/dict.rst:162
258259
msgid"len"
259260
msgstr"len"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp