7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.10\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2021-10-26 16:47 +0000\n "
10
+ "POT-Creation-Date : 2022-01-20 00:10 +0000\n "
11
11
"PO-Revision-Date : 2018-05-23 14:32+0000\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -89,7 +89,7 @@ msgid ""
89
89
"descriptors don't. Otherwise, an :exc:`AttributeError` is raised."
90
90
msgstr ""
91
91
92
- #: ../../c-api/object.rst:79 ../../c-api/object.rst:90
92
+ #: ../../c-api/object.rst:79 ../../c-api/object.rst:91
93
93
msgid ""
94
94
"Set the value of the attribute named *attr_name*, for object *o*, to the "
95
95
"value *v*. Raise an exception and return ``-1`` on failure; return ``0`` on "
@@ -98,17 +98,18 @@ msgstr ""
98
98
99
99
#: ../../c-api/object.rst:84
100
100
msgid ""
101
- "If *v* is ``NULL``, the attribute is deleted, however this feature is "
102
- "deprecated in favour of using :c:func:`PyObject_DelAttr`."
101
+ "If *v* is ``NULL``, the attribute is deleted. This behaviour is deprecated "
102
+ "in favour of using :c:func:`PyObject_DelAttr`, but there are currently no "
103
+ "plans to remove it."
103
104
msgstr ""
104
105
105
- #: ../../c-api/object.rst:95
106
+ #: ../../c-api/object.rst:96
106
107
msgid ""
107
108
"If *v* is ``NULL``, the attribute is deleted, however this feature is "
108
109
"deprecated in favour of using :c:func:`PyObject_DelAttrString`."
109
110
msgstr ""
110
111
111
- #: ../../c-api/object.rst:101
112
+ #: ../../c-api/object.rst:102
112
113
msgid ""
113
114
"Generic attribute setter and deleter function that is meant to be put into a "
114
115
"type object's :c:member:`~PyTypeObject.tp_setattro` slot. It looks for a "
@@ -120,25 +121,25 @@ msgid ""
120
121
"returned."
121
122
msgstr ""
122
123
123
- #: ../../c-api/object.rst:113 ../../c-api/object.rst:119
124
+ #: ../../c-api/object.rst:114 ../../c-api/object.rst:120
124
125
msgid ""
125
126
"Delete attribute named *attr_name*, for object *o*. Returns ``-1`` on "
126
127
"failure. This is the equivalent of the Python statement ``del o.attr_name``."
127
128
msgstr ""
128
129
129
- #: ../../c-api/object.rst:125
130
+ #: ../../c-api/object.rst:126
130
131
msgid ""
131
132
"A generic implementation for the getter of a ``__dict__`` descriptor. It "
132
133
"creates the dictionary if necessary."
133
134
msgstr ""
134
135
135
- #: ../../c-api/object.rst:133
136
+ #: ../../c-api/object.rst:134
136
137
msgid ""
137
138
"A generic implementation for the setter of a ``__dict__`` descriptor. This "
138
139
"implementation does not allow the dictionary to be deleted."
139
140
msgstr ""
140
141
141
- #: ../../c-api/object.rst:141
142
+ #: ../../c-api/object.rst:142
142
143
msgid ""
143
144
"Compare the values of *o1* and *o2* using the operation specified by *opid*, "
144
145
"which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, :const:"
@@ -149,7 +150,7 @@ msgid ""
149
150
"failure."
150
151
msgstr ""
151
152
152
- #: ../../c-api/object.rst:151
153
+ #: ../../c-api/object.rst:152
153
154
msgid ""
154
155
"Compare the values of *o1* and *o2* using the operation specified by *opid*, "
155
156
"which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, :const:"
@@ -160,27 +161,27 @@ msgid ""
160
161
"to *opid*."
161
162
msgstr ""
162
163
163
- #: ../../c-api/object.rst:160
164
+ #: ../../c-api/object.rst:161
164
165
msgid ""
165
166
"If *o1* and *o2* are the same object, :c:func:`PyObject_RichCompareBool` "
166
167
"will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`."
167
168
msgstr ""
168
169
169
- #: ../../c-api/object.rst:167
170
+ #: ../../c-api/object.rst:168
170
171
msgid ""
171
172
"Compute a string representation of object *o*. Returns the string "
172
173
"representation on success, ``NULL`` on failure. This is the equivalent of "
173
174
"the Python expression ``repr(o)``. Called by the :func:`repr` built-in "
174
175
"function."
175
176
msgstr ""
176
177
177
- #: ../../c-api/object.rst:171 ../../c-api/object.rst:195
178
+ #: ../../c-api/object.rst:172 ../../c-api/object.rst:196
178
179
msgid ""
179
180
"This function now includes a debug assertion to help ensure that it does not "
180
181
"silently discard an active exception."
181
182
msgstr ""
182
183
183
- #: ../../c-api/object.rst:179
184
+ #: ../../c-api/object.rst:180
184
185
msgid ""
185
186
"As :c:func:`PyObject_Repr`, compute a string representation of object *o*, "
186
187
"but escape the non-ASCII characters in the string returned by :c:func:"
@@ -189,15 +190,15 @@ msgid ""
189
190
"Called by the :func:`ascii` built-in function."
190
191
msgstr ""
191
192
192
- #: ../../c-api/object.rst:190
193
+ #: ../../c-api/object.rst:191
193
194
msgid ""
194
195
"Compute a string representation of object *o*. Returns the string "
195
196
"representation on success, ``NULL`` on failure. This is the equivalent of "
196
197
"the Python expression ``str(o)``. Called by the :func:`str` built-in "
197
198
"function and, therefore, by the :func:`print` function."
198
199
msgstr ""
199
200
200
- #: ../../c-api/object.rst:204
201
+ #: ../../c-api/object.rst:205
201
202
msgid ""
202
203
"Compute a bytes representation of object *o*. ``NULL`` is returned on "
203
204
"failure and a bytes object on success. This is equivalent to the Python "
@@ -206,95 +207,95 @@ msgid ""
206
207
"bytes object."
207
208
msgstr ""
208
209
209
- #: ../../c-api/object.rst:213
210
+ #: ../../c-api/object.rst:214
210
211
msgid ""
211
212
"Return ``1`` if the class *derived* is identical to or derived from the "
212
213
"class *cls*, otherwise return ``0``. In case of an error, return ``-1``."
213
214
msgstr ""
214
215
215
- #: ../../c-api/object.rst:216 ../../c-api/object.rst:235
216
+ #: ../../c-api/object.rst:217 ../../c-api/object.rst:236
216
217
msgid ""
217
218
"If *cls* is a tuple, the check will be done against every entry in *cls*. "
218
219
"The result will be ``1`` when at least one of the checks returns ``1``, "
219
220
"otherwise it will be ``0``."
220
221
msgstr ""
221
222
222
- #: ../../c-api/object.rst:220
223
+ #: ../../c-api/object.rst:221
223
224
msgid ""
224
225
"If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to "
225
226
"determine the subclass status as described in :pep:`3119`. Otherwise, "
226
227
"*derived* is a subclass of *cls* if it is a direct or indirect subclass, i."
227
228
"e. contained in ``cls.__mro__``."
228
229
msgstr ""
229
230
230
- #: ../../c-api/object.rst:225
231
+ #: ../../c-api/object.rst:226
231
232
msgid ""
232
233
"Normally only class objects, i.e. instances of :class:`type` or a derived "
233
234
"class, are considered classes. However, objects can override this by having "
234
235
"a :attr:`__bases__` attribute (which must be a tuple of base classes)."
235
236
msgstr ""
236
237
237
- #: ../../c-api/object.rst:232
238
+ #: ../../c-api/object.rst:233
238
239
msgid ""
239
240
"Return ``1`` if *inst* is an instance of the class *cls* or a subclass of "
240
241
"*cls*, or ``0`` if not. On error, returns ``-1`` and sets an exception."
241
242
msgstr ""
242
243
243
- #: ../../c-api/object.rst:239
244
+ #: ../../c-api/object.rst:240
244
245
msgid ""
245
246
"If *cls* has a :meth:`~class.__instancecheck__` method, it will be called to "
246
247
"determine the subclass status as described in :pep:`3119`. Otherwise, "
247
248
"*inst* is an instance of *cls* if its class is a subclass of *cls*."
248
249
msgstr ""
249
250
250
- #: ../../c-api/object.rst:243
251
+ #: ../../c-api/object.rst:244
251
252
msgid ""
252
253
"An instance *inst* can override what is considered its class by having a :"
253
254
"attr:`__class__` attribute."
254
255
msgstr ""
255
256
256
- #: ../../c-api/object.rst:246
257
+ #: ../../c-api/object.rst:247
257
258
msgid ""
258
259
"An object *cls* can override if it is considered a class, and what its base "
259
260
"classes are, by having a :attr:`__bases__` attribute (which must be a tuple "
260
261
"of base classes)."
261
262
msgstr ""
262
263
263
- #: ../../c-api/object.rst:255
264
+ #: ../../c-api/object.rst:256
264
265
msgid ""
265
266
"Compute and return the hash value of an object *o*. On failure, return "
266
267
"``-1``. This is the equivalent of the Python expression ``hash(o)``."
267
268
msgstr ""
268
269
269
- #: ../../c-api/object.rst:258
270
+ #: ../../c-api/object.rst:259
270
271
msgid ""
271
272
"The return type is now Py_hash_t. This is a signed integer the same size as "
272
273
"Py_ssize_t."
273
274
msgstr ""
274
275
275
- #: ../../c-api/object.rst:265
276
+ #: ../../c-api/object.rst:266
276
277
msgid ""
277
278
"Set a :exc:`TypeError` indicating that ``type(o)`` is not hashable and "
278
279
"return ``-1``. This function receives special treatment when stored in a "
279
280
"``tp_hash`` slot, allowing a type to explicitly indicate to the interpreter "
280
281
"that it is not hashable."
281
282
msgstr ""
282
283
283
- #: ../../c-api/object.rst:273
284
+ #: ../../c-api/object.rst:274
284
285
msgid ""
285
286
"Returns ``1`` if the object *o* is considered to be true, and ``0`` "
286
287
"otherwise. This is equivalent to the Python expression ``not not o``. On "
287
288
"failure, return ``-1``."
288
289
msgstr ""
289
290
290
- #: ../../c-api/object.rst:280
291
+ #: ../../c-api/object.rst:281
291
292
msgid ""
292
293
"Returns ``0`` if the object *o* is considered to be true, and ``1`` "
293
294
"otherwise. This is equivalent to the Python expression ``not o``. On "
294
295
"failure, return ``-1``."
295
296
msgstr ""
296
297
297
- #: ../../c-api/object.rst:289
298
+ #: ../../c-api/object.rst:290
298
299
msgid ""
299
300
"When *o* is non-``NULL``, returns a type object corresponding to the object "
300
301
"type of object *o*. On failure, raises :exc:`SystemError` and returns "
@@ -305,21 +306,21 @@ msgid ""
305
306
"when the incremented reference count is needed."
306
307
msgstr ""
307
308
308
- #: ../../c-api/object.rst:300
309
+ #: ../../c-api/object.rst:301
309
310
msgid ""
310
311
"Return non-zero if the object *o* is of type *type* or a subtype of *type*, "
311
312
"and ``0`` otherwise. Both parameters must be non-``NULL``."
312
313
msgstr ""
313
314
314
- #: ../../c-api/object.rst:309
315
+ #: ../../c-api/object.rst:310
315
316
msgid ""
316
317
"Return the length of object *o*. If the object *o* provides either the "
317
318
"sequence and mapping protocols, the sequence length is returned. On error, "
318
319
"``-1`` is returned. This is the equivalent to the Python expression "
319
320
"``len(o)``."
320
321
msgstr ""
321
322
322
- #: ../../c-api/object.rst:316
323
+ #: ../../c-api/object.rst:317
323
324
msgid ""
324
325
"Return an estimated length for the object *o*. First try to return its "
325
326
"actual length, then an estimate using :meth:`~object.__length_hint__`, and "
@@ -328,26 +329,26 @@ msgid ""
328
329
"defaultvalue)``."
329
330
msgstr ""
330
331
331
- #: ../../c-api/object.rst:326
332
+ #: ../../c-api/object.rst:327
332
333
msgid ""
333
334
"Return element of *o* corresponding to the object *key* or ``NULL`` on "
334
335
"failure. This is the equivalent of the Python expression ``o[key]``."
335
336
msgstr ""
336
337
337
- #: ../../c-api/object.rst:332
338
+ #: ../../c-api/object.rst:333
338
339
msgid ""
339
340
"Map the object *key* to the value *v*. Raise an exception and return ``-1`` "
340
341
"on failure; return ``0`` on success. This is the equivalent of the Python "
341
342
"statement ``o[key] = v``. This function *does not* steal a reference to *v*."
342
343
msgstr ""
343
344
344
- #: ../../c-api/object.rst:340
345
+ #: ../../c-api/object.rst:341
345
346
msgid ""
346
347
"Remove the mapping for the object *key* from the object *o*. Return ``-1`` "
347
348
"on failure. This is equivalent to the Python statement ``del o[key]``."
348
349
msgstr ""
349
350
350
- #: ../../c-api/object.rst:346
351
+ #: ../../c-api/object.rst:347
351
352
msgid ""
352
353
"This is equivalent to the Python expression ``dir(o)``, returning a "
353
354
"(possibly empty) list of strings appropriate for the object argument, or "
@@ -357,15 +358,15 @@ msgid ""
357
358
"`PyErr_Occurred` will return false."
358
359
msgstr ""
359
360
360
- #: ../../c-api/object.rst:355
361
+ #: ../../c-api/object.rst:356
361
362
msgid ""
362
363
"This is equivalent to the Python expression ``iter(o)``. It returns a new "
363
364
"iterator for the object argument, or the object itself if the object is "
364
365
"already an iterator. Raises :exc:`TypeError` and returns ``NULL`` if the "
365
366
"object cannot be iterated."
366
367
msgstr ""
367
368
368
- #: ../../c-api/object.rst:363
369
+ #: ../../c-api/object.rst:364
369
370
msgid ""
370
371
"This is the equivalent to the Python expression ``aiter(o)``. Takes an :"
371
372
"class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. "
0 commit comments