9
9
msgstr ""
10
10
"Project-Id-Version : Python 3.11\n "
11
11
"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 "
13
13
"PO-Revision-Date : 2017-09-22 18:26+0000\n "
14
14
"Last-Translator : Liang-Bo Wang <me@liang2.tw>\n "
15
15
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -117,40 +117,41 @@ msgid ""
117
117
"``NULL`` if the key *key* is not present, but *without* setting an exception."
118
118
msgstr ""
119
119
120
- #: ../../c-api/dict.rst:101
120
+ #: ../../c-api/dict.rst:103
121
121
msgid ""
122
- "Note that exceptions which occur while calling :meth:`__hash__` and :meth:"
123
- "`__eq__` methods will get suppressed. To get error reporting use :c:func:"
124
- "`PyDict_GetItemWithError()` instead."
122
+ "Exceptions that occur while this calls :meth:`~object. __hash__` and :meth:"
123
+ "`~object. __eq__` methods are silently ignored. Prefer the :c:func:"
124
+ "`PyDict_GetItemWithError` function instead."
125
125
msgstr ""
126
126
127
- #: ../../c-api/dict.rst:105
127
+ #: ../../c-api/dict.rst:107
128
128
msgid ""
129
129
"Calling this API without :term:`GIL` held had been allowed for historical "
130
130
"reason. It is no longer allowed."
131
131
msgstr ""
132
132
133
- #: ../../c-api/dict.rst:112
133
+ #: ../../c-api/dict.rst:114
134
134
msgid ""
135
135
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
136
136
"Return ``NULL`` **with** an exception set if an exception occurred. Return "
137
137
"``NULL`` **without** an exception set if the key wasn't present."
138
138
msgstr ""
139
139
140
- #: ../../c-api/dict.rst:120
140
+ #: ../../c-api/dict.rst:122
141
141
msgid ""
142
142
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
143
143
"expr:`const char*`, rather than a :c:expr:`PyObject*`."
144
144
msgstr ""
145
145
146
- #: ../../c-api/dict.rst:123
146
+ #: ../../c-api/dict.rst:127
147
147
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."
151
152
msgstr ""
152
153
153
- #: ../../c-api/dict.rst:131
154
+ #: ../../c-api/dict.rst:136
154
155
msgid ""
155
156
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
156
157
"it returns the value corresponding to *key* from the dictionary *p*. If the "
@@ -160,29 +161,29 @@ msgid ""
160
161
"the insertion."
161
162
msgstr ""
162
163
163
- #: ../../c-api/dict.rst:141
164
+ #: ../../c-api/dict.rst:146
164
165
msgid ""
165
166
"Return a :c:type:`PyListObject` containing all the items from the dictionary."
166
167
msgstr ""
167
168
168
- #: ../../c-api/dict.rst:146
169
+ #: ../../c-api/dict.rst:151
169
170
msgid ""
170
171
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
171
172
msgstr ""
172
173
173
- #: ../../c-api/dict.rst:151
174
+ #: ../../c-api/dict.rst:156
174
175
msgid ""
175
176
"Return a :c:type:`PyListObject` containing all the values from the "
176
177
"dictionary *p*."
177
178
msgstr ""
178
179
179
- #: ../../c-api/dict.rst:159
180
+ #: ../../c-api/dict.rst:164
180
181
msgid ""
181
182
"Return the number of items in the dictionary. This is equivalent to "
182
183
"``len(p)`` on a dictionary."
183
184
msgstr ""
184
185
185
- #: ../../c-api/dict.rst:165
186
+ #: ../../c-api/dict.rst:170
186
187
msgid ""
187
188
"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
188
189
"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
@@ -196,21 +197,21 @@ msgid ""
196
197
"structure is sparse, the offsets are not consecutive."
197
198
msgstr ""
198
199
199
- #: ../../c-api/dict.rst:176
200
+ #: ../../c-api/dict.rst:181
200
201
msgid "For example::"
201
202
msgstr ""
202
203
"舉例來說:\n"
203
204
"\n"
204
205
"::"
205
206
206
- #: ../../c-api/dict.rst:186
207
+ #: ../../c-api/dict.rst:191
207
208
msgid ""
208
209
"The dictionary *p* should not be mutated during iteration. It is safe to "
209
210
"modify the values of the keys as you iterate over the dictionary, but only "
210
211
"so long as the set of keys does not change. For example::"
211
212
msgstr ""
212
213
213
- #: ../../c-api/dict.rst:211
214
+ #: ../../c-api/dict.rst:216
214
215
msgid ""
215
216
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
216
217
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -220,7 +221,7 @@ msgid ""
220
221
"or ``-1`` if an exception was raised."
221
222
msgstr ""
222
223
223
- #: ../../c-api/dict.rst:221
224
+ #: ../../c-api/dict.rst:226
224
225
msgid ""
225
226
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
226
227
"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -229,7 +230,7 @@ msgid ""
229
230
"exception was raised."
230
231
msgstr ""
231
232
232
- #: ../../c-api/dict.rst:230
233
+ #: ../../c-api/dict.rst:235
233
234
msgid ""
234
235
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
235
236
"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -250,10 +251,10 @@ msgstr "dictionary(字典)"
250
251
msgid "PyUnicode_FromString()"
251
252
msgstr "PyUnicode_FromString()"
252
253
253
- #: ../../c-api/dict.rst:157
254
+ #: ../../c-api/dict.rst:162
254
255
msgid "built-in function"
255
256
msgstr "built-in function(內建函式)"
256
257
257
- #: ../../c-api/dict.rst:157
258
+ #: ../../c-api/dict.rst:162
258
259
msgid "len"
259
260
msgstr "len"
0 commit comments