7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.11\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2023-02-15 00:17 +0000\n "
10
+ "POT-Creation-Date : 2023-03-23 00:15 +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- "
@@ -193,21 +193,34 @@ msgid ""
193
193
"will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`."
194
194
msgstr ""
195
195
196
- #: ../../c-api/object.rst:186
196
+ #: ../../c-api/object.rst:184
197
+ msgid ""
198
+ "Format *obj* using *format_spec*. This is equivalent to the Python "
199
+ "expression ``format(obj, format_spec)``."
200
+ msgstr ""
201
+
202
+ #: ../../c-api/object.rst:187
203
+ msgid ""
204
+ "*format_spec* may be ``NULL``. In this case the call is equivalent to "
205
+ "``format(obj)``. Returns the formatted string on success, ``NULL`` on "
206
+ "failure."
207
+ msgstr ""
208
+
209
+ #: ../../c-api/object.rst:195
197
210
msgid ""
198
211
"Compute a string representation of object *o*. Returns the string "
199
212
"representation on success, ``NULL`` on failure. This is the equivalent of "
200
213
"the Python expression ``repr(o)``. Called by the :func:`repr` built-in "
201
214
"function."
202
215
msgstr ""
203
216
204
- #: ../../c-api/object.rst:190 ../../c-api/object.rst:214
217
+ #: ../../c-api/object.rst:199 ../../c-api/object.rst:223
205
218
msgid ""
206
219
"This function now includes a debug assertion to help ensure that it does not "
207
220
"silently discard an active exception."
208
221
msgstr ""
209
222
210
- #: ../../c-api/object.rst:198
223
+ #: ../../c-api/object.rst:207
211
224
msgid ""
212
225
"As :c:func:`PyObject_Repr`, compute a string representation of object *o*, "
213
226
"but escape the non-ASCII characters in the string returned by :c:func:"
@@ -216,15 +229,15 @@ msgid ""
216
229
"Called by the :func:`ascii` built-in function."
217
230
msgstr ""
218
231
219
- #: ../../c-api/object.rst:209
232
+ #: ../../c-api/object.rst:218
220
233
msgid ""
221
234
"Compute a string representation of object *o*. Returns the string "
222
235
"representation on success, ``NULL`` on failure. This is the equivalent of "
223
236
"the Python expression ``str(o)``. Called by the :func:`str` built-in "
224
237
"function and, therefore, by the :func:`print` function."
225
238
msgstr ""
226
239
227
- #: ../../c-api/object.rst:223
240
+ #: ../../c-api/object.rst:232
228
241
msgid ""
229
242
"Compute a bytes representation of object *o*. ``NULL`` is returned on "
230
243
"failure and a bytes object on success. This is equivalent to the Python "
@@ -233,95 +246,95 @@ msgid ""
233
246
"bytes object."
234
247
msgstr ""
235
248
236
- #: ../../c-api/object.rst:232
249
+ #: ../../c-api/object.rst:241
237
250
msgid ""
238
251
"Return ``1`` if the class *derived* is identical to or derived from the "
239
252
"class *cls*, otherwise return ``0``. In case of an error, return ``-1``."
240
253
msgstr ""
241
254
242
- #: ../../c-api/object.rst:235 ../../c-api/object.rst:254
255
+ #: ../../c-api/object.rst:244 ../../c-api/object.rst:263
243
256
msgid ""
244
257
"If *cls* is a tuple, the check will be done against every entry in *cls*. "
245
258
"The result will be ``1`` when at least one of the checks returns ``1``, "
246
259
"otherwise it will be ``0``."
247
260
msgstr ""
248
261
249
- #: ../../c-api/object.rst:239
262
+ #: ../../c-api/object.rst:248
250
263
msgid ""
251
264
"If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to "
252
265
"determine the subclass status as described in :pep:`3119`. Otherwise, "
253
266
"*derived* is a subclass of *cls* if it is a direct or indirect subclass, i."
254
267
"e. contained in ``cls.__mro__``."
255
268
msgstr ""
256
269
257
- #: ../../c-api/object.rst:244
270
+ #: ../../c-api/object.rst:253
258
271
msgid ""
259
272
"Normally only class objects, i.e. instances of :class:`type` or a derived "
260
273
"class, are considered classes. However, objects can override this by having "
261
274
"a :attr:`__bases__` attribute (which must be a tuple of base classes)."
262
275
msgstr ""
263
276
264
- #: ../../c-api/object.rst:251
277
+ #: ../../c-api/object.rst:260
265
278
msgid ""
266
279
"Return ``1`` if *inst* is an instance of the class *cls* or a subclass of "
267
280
"*cls*, or ``0`` if not. On error, returns ``-1`` and sets an exception."
268
281
msgstr ""
269
282
270
- #: ../../c-api/object.rst:258
283
+ #: ../../c-api/object.rst:267
271
284
msgid ""
272
285
"If *cls* has a :meth:`~class.__instancecheck__` method, it will be called to "
273
286
"determine the subclass status as described in :pep:`3119`. Otherwise, "
274
287
"*inst* is an instance of *cls* if its class is a subclass of *cls*."
275
288
msgstr ""
276
289
277
- #: ../../c-api/object.rst:262
290
+ #: ../../c-api/object.rst:271
278
291
msgid ""
279
292
"An instance *inst* can override what is considered its class by having a :"
280
293
"attr:`__class__` attribute."
281
294
msgstr ""
282
295
283
- #: ../../c-api/object.rst:265
296
+ #: ../../c-api/object.rst:274
284
297
msgid ""
285
298
"An object *cls* can override if it is considered a class, and what its base "
286
299
"classes are, by having a :attr:`__bases__` attribute (which must be a tuple "
287
300
"of base classes)."
288
301
msgstr ""
289
302
290
- #: ../../c-api/object.rst:274
303
+ #: ../../c-api/object.rst:283
291
304
msgid ""
292
305
"Compute and return the hash value of an object *o*. On failure, return "
293
306
"``-1``. This is the equivalent of the Python expression ``hash(o)``."
294
307
msgstr ""
295
308
296
- #: ../../c-api/object.rst:277
309
+ #: ../../c-api/object.rst:286
297
310
msgid ""
298
311
"The return type is now Py_hash_t. This is a signed integer the same size "
299
312
"as :c:type:`Py_ssize_t`."
300
313
msgstr ""
301
314
302
- #: ../../c-api/object.rst:284
315
+ #: ../../c-api/object.rst:293
303
316
msgid ""
304
317
"Set a :exc:`TypeError` indicating that ``type(o)`` is not :term:`hashable` "
305
318
"and return ``-1``. This function receives special treatment when stored in a "
306
319
"``tp_hash`` slot, allowing a type to explicitly indicate to the interpreter "
307
320
"that it is not hashable."
308
321
msgstr ""
309
322
310
- #: ../../c-api/object.rst:292
323
+ #: ../../c-api/object.rst:301
311
324
msgid ""
312
325
"Returns ``1`` if the object *o* is considered to be true, and ``0`` "
313
326
"otherwise. This is equivalent to the Python expression ``not not o``. On "
314
327
"failure, return ``-1``."
315
328
msgstr ""
316
329
317
- #: ../../c-api/object.rst:299
330
+ #: ../../c-api/object.rst:308
318
331
msgid ""
319
332
"Returns ``0`` if the object *o* is considered to be true, and ``1`` "
320
333
"otherwise. This is equivalent to the Python expression ``not o``. On "
321
334
"failure, return ``-1``."
322
335
msgstr ""
323
336
324
- #: ../../c-api/object.rst:308
337
+ #: ../../c-api/object.rst:317
325
338
msgid ""
326
339
"When *o* is non-``NULL``, returns a type object corresponding to the object "
327
340
"type of object *o*. On failure, raises :exc:`SystemError` and returns "
@@ -332,21 +345,21 @@ msgid ""
332
345
"incremented reference count is needed."
333
346
msgstr ""
334
347
335
- #: ../../c-api/object.rst:319
348
+ #: ../../c-api/object.rst:328
336
349
msgid ""
337
350
"Return non-zero if the object *o* is of type *type* or a subtype of *type*, "
338
351
"and ``0`` otherwise. Both parameters must be non-``NULL``."
339
352
msgstr ""
340
353
341
- #: ../../c-api/object.rst:328
354
+ #: ../../c-api/object.rst:337
342
355
msgid ""
343
356
"Return the length of object *o*. If the object *o* provides either the "
344
357
"sequence and mapping protocols, the sequence length is returned. On error, "
345
358
"``-1`` is returned. This is the equivalent to the Python expression "
346
359
"``len(o)``."
347
360
msgstr ""
348
361
349
- #: ../../c-api/object.rst:335
362
+ #: ../../c-api/object.rst:344
350
363
msgid ""
351
364
"Return an estimated length for the object *o*. First try to return its "
352
365
"actual length, then an estimate using :meth:`~object.__length_hint__`, and "
@@ -355,26 +368,26 @@ msgid ""
355
368
"defaultvalue)``."
356
369
msgstr ""
357
370
358
- #: ../../c-api/object.rst:345
371
+ #: ../../c-api/object.rst:354
359
372
msgid ""
360
373
"Return element of *o* corresponding to the object *key* or ``NULL`` on "
361
374
"failure. This is the equivalent of the Python expression ``o[key]``."
362
375
msgstr ""
363
376
364
- #: ../../c-api/object.rst:351
377
+ #: ../../c-api/object.rst:360
365
378
msgid ""
366
379
"Map the object *key* to the value *v*. Raise an exception and return ``-1`` "
367
380
"on failure; return ``0`` on success. This is the equivalent of the Python "
368
381
"statement ``o[key] = v``. This function *does not* steal a reference to *v*."
369
382
msgstr ""
370
383
371
- #: ../../c-api/object.rst:359
384
+ #: ../../c-api/object.rst:368
372
385
msgid ""
373
386
"Remove the mapping for the object *key* from the object *o*. Return ``-1`` "
374
387
"on failure. This is equivalent to the Python statement ``del o[key]``."
375
388
msgstr ""
376
389
377
- #: ../../c-api/object.rst:365
390
+ #: ../../c-api/object.rst:374
378
391
msgid ""
379
392
"This is equivalent to the Python expression ``dir(o)``, returning a "
380
393
"(possibly empty) list of strings appropriate for the object argument, or "
@@ -384,15 +397,15 @@ msgid ""
384
397
"`PyErr_Occurred` will return false."
385
398
msgstr ""
386
399
387
- #: ../../c-api/object.rst:374
400
+ #: ../../c-api/object.rst:383
388
401
msgid ""
389
402
"This is equivalent to the Python expression ``iter(o)``. It returns a new "
390
403
"iterator for the object argument, or the object itself if the object is "
391
404
"already an iterator. Raises :exc:`TypeError` and returns ``NULL`` if the "
392
405
"object cannot be iterated."
393
406
msgstr ""
394
407
395
- #: ../../c-api/object.rst:382
408
+ #: ../../c-api/object.rst:391
396
409
msgid ""
397
410
"This is the equivalent to the Python expression ``aiter(o)``. Takes an :"
398
411
"class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. "
0 commit comments