7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.11\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2023-05-09 00:30 +0000\n "
10
+ "POT-Creation-Date : 2023-05-30 00:33 +0000\n "
11
11
"PO-Revision-Date : 2018-05-23 16:13+0000\n "
12
12
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -259,7 +259,7 @@ msgid ""
259
259
"capture data for later printing in a lightweight fashion."
260
260
msgstr ""
261
261
262
- #: ../../library/traceback.rst:223 ../../library/traceback.rst:283
262
+ #: ../../library/traceback.rst:223 ../../library/traceback.rst:297
263
263
msgid ""
264
264
"Capture an exception for later rendering. *limit*, *lookup_lines* and "
265
265
"*capture_locals* are as for the :class:`StackSummary` class."
@@ -273,122 +273,142 @@ msgid ""
273
273
"is ``None`` and ``__suppress_context__`` is false."
274
274
msgstr ""
275
275
276
- #: ../../library/traceback.rst:231 ../../library/traceback.rst:286
276
+ #: ../../library/traceback.rst:231 ../../library/traceback.rst:300
277
277
msgid ""
278
278
"Note that when locals are captured, they are also shown in the traceback."
279
279
msgstr ""
280
280
281
- #: ../../library/traceback.rst:235
281
+ #: ../../library/traceback.rst:233
282
+ msgid ""
283
+ "*max_group_width* and *max_group_depth* control the formatting of exception "
284
+ "groups (see :exc:`BaseExceptionGroup`). The depth refers to the nesting "
285
+ "level of the group, and the width refers to the size of a single exception "
286
+ "group's exceptions array. The formatted output is truncated when either "
287
+ "limit is exceeded."
288
+ msgstr ""
289
+
290
+ #: ../../library/traceback.rst:241
282
291
msgid "A :class:`TracebackException` of the original ``__cause__``."
283
292
msgstr ""
284
293
285
- #: ../../library/traceback.rst:239
294
+ #: ../../library/traceback.rst:245
286
295
msgid "A :class:`TracebackException` of the original ``__context__``."
287
296
msgstr ""
288
297
289
- #: ../../library/traceback.rst:243
298
+ #: ../../library/traceback.rst:249
299
+ msgid ""
300
+ "If ``self`` represents an :exc:`ExceptionGroup`, this field holds a list of :"
301
+ "class:`TracebackException` instances representing the nested exceptions. "
302
+ "Otherwise it is ``None``."
303
+ msgstr ""
304
+
305
+ #: ../../library/traceback.rst:257
290
306
msgid "The ``__suppress_context__`` value from the original exception."
291
307
msgstr ""
292
308
293
- #: ../../library/traceback.rst:247
309
+ #: ../../library/traceback.rst:261
294
310
msgid ""
295
311
"The ``__notes__`` value from the original exception, or ``None`` if the "
296
312
"exception does not have any notes. If it is not ``None`` is it formatted in "
297
313
"the traceback after the exception string."
298
314
msgstr ""
299
315
300
- #: ../../library/traceback.rst:255
316
+ #: ../../library/traceback.rst:269
301
317
msgid "A :class:`StackSummary` representing the traceback."
302
318
msgstr ""
303
319
304
- #: ../../library/traceback.rst:259
320
+ #: ../../library/traceback.rst:273
305
321
msgid "The class of the original traceback."
306
322
msgstr ""
307
323
308
- #: ../../library/traceback.rst:263
324
+ #: ../../library/traceback.rst:277
309
325
msgid "For syntax errors - the file name where the error occurred."
310
326
msgstr ""
311
327
312
- #: ../../library/traceback.rst:267
328
+ #: ../../library/traceback.rst:281
313
329
msgid "For syntax errors - the line number where the error occurred."
314
330
msgstr ""
315
331
316
- #: ../../library/traceback.rst:271
332
+ #: ../../library/traceback.rst:285
317
333
msgid "For syntax errors - the text where the error occurred."
318
334
msgstr ""
319
335
320
- #: ../../library/traceback.rst:275
336
+ #: ../../library/traceback.rst:289
321
337
msgid "For syntax errors - the offset into the text where the error occurred."
322
338
msgstr ""
323
339
324
- #: ../../library/traceback.rst:279
340
+ #: ../../library/traceback.rst:293
325
341
msgid "For syntax errors - the compiler error message."
326
342
msgstr ""
327
343
328
- #: ../../library/traceback.rst:290
344
+ #: ../../library/traceback.rst:304
329
345
msgid ""
330
346
"Print to *file* (default ``sys.stderr``) the exception information returned "
331
347
"by :meth:`format`."
332
348
msgstr ""
333
349
334
- #: ../../library/traceback.rst:297
350
+ #: ../../library/traceback.rst:311
335
351
msgid "Format the exception."
336
352
msgstr ""
337
353
338
- #: ../../library/traceback.rst:299
354
+ #: ../../library/traceback.rst:313
339
355
msgid ""
340
356
"If *chain* is not ``True``, ``__cause__`` and ``__context__`` will not be "
341
357
"formatted."
342
358
msgstr ""
343
359
344
- #: ../../library/traceback.rst:302
360
+ #: ../../library/traceback.rst:316
345
361
msgid ""
346
362
"The return value is a generator of strings, each ending in a newline and "
347
363
"some containing internal newlines. :func:`~traceback.print_exception` is a "
348
364
"wrapper around this method which just prints the lines to a file."
349
365
msgstr ""
350
366
351
- #: ../../library/traceback.rst:306 ../../library/traceback.rst:320
367
+ #: ../../library/traceback.rst:320 ../../library/traceback.rst:334
352
368
msgid ""
353
369
"The message indicating which exception occurred is always the last string in "
354
370
"the output."
355
371
msgstr ""
356
372
357
- #: ../../library/traceback.rst:311
373
+ #: ../../library/traceback.rst:325
358
374
msgid "Format the exception part of the traceback."
359
375
msgstr ""
360
376
361
- #: ../../library/traceback.rst:313
377
+ #: ../../library/traceback.rst:327
362
378
msgid "The return value is a generator of strings, each ending in a newline."
363
379
msgstr ""
364
380
365
- #: ../../library/traceback.rst:315
381
+ #: ../../library/traceback.rst:329
366
382
msgid ""
367
383
"Normally, the generator emits a single string; however, for :exc:"
368
384
"`SyntaxError` exceptions, it emits several lines that (when printed) display "
369
385
"detailed information about where the syntax error occurred."
370
386
msgstr ""
371
387
372
- #: ../../library/traceback.rst:323
388
+ #: ../../library/traceback.rst:337
373
389
msgid "Added the *compact* parameter."
374
390
msgstr "新增 *compact* 參數。"
375
391
376
- #: ../../library/traceback.rst:328
392
+ #: ../../library/traceback.rst:340
393
+ msgid "Added the *max_group_width* and *max_group_depth* parameters."
394
+ msgstr ""
395
+
396
+ #: ../../library/traceback.rst:345
377
397
msgid ":class:`StackSummary` Objects"
378
398
msgstr ":class:`StackSummary` 物件"
379
399
380
- #: ../../library/traceback.rst:332
400
+ #: ../../library/traceback.rst:349
381
401
msgid ""
382
402
":class:`StackSummary` objects represent a call stack ready for formatting."
383
403
msgstr ""
384
404
385
- #: ../../library/traceback.rst:338
405
+ #: ../../library/traceback.rst:355
386
406
msgid ""
387
407
"Construct a :class:`StackSummary` object from a frame generator (such as is "
388
408
"returned by :func:`~traceback.walk_stack` or :func:`~traceback.walk_tb`)."
389
409
msgstr ""
390
410
391
- #: ../../library/traceback.rst:342
411
+ #: ../../library/traceback.rst:359
392
412
msgid ""
393
413
"If *limit* is supplied, only this many frames are taken from *frame_gen*. If "
394
414
"*lookup_lines* is ``False``, the returned :class:`FrameSummary` objects will "
@@ -398,50 +418,50 @@ msgid ""
398
418
"class:`FrameSummary` are captured as object representations."
399
419
msgstr ""
400
420
401
- #: ../../library/traceback.rst:352
421
+ #: ../../library/traceback.rst:369
402
422
msgid ""
403
423
"Construct a :class:`StackSummary` object from a supplied list of :class:"
404
424
"`FrameSummary` objects or old-style list of tuples. Each tuple should be a "
405
425
"4-tuple with filename, lineno, name, line as the elements."
406
426
msgstr ""
407
427
408
- #: ../../library/traceback.rst:358
428
+ #: ../../library/traceback.rst:375
409
429
msgid ""
410
430
"Returns a list of strings ready for printing. Each string in the resulting "
411
431
"list corresponds to a single frame from the stack. Each string ends in a "
412
432
"newline; the strings may contain internal newlines as well, for those items "
413
433
"with source text lines."
414
434
msgstr ""
415
435
416
- #: ../../library/traceback.rst:363
436
+ #: ../../library/traceback.rst:380
417
437
msgid ""
418
438
"For long sequences of the same frame and line, the first few repetitions are "
419
439
"shown, followed by a summary line stating the exact number of further "
420
440
"repetitions."
421
441
msgstr ""
422
442
423
- #: ../../library/traceback.rst:367
443
+ #: ../../library/traceback.rst:384
424
444
msgid "Long sequences of repeated frames are now abbreviated."
425
445
msgstr ""
426
446
427
- #: ../../library/traceback.rst:372
447
+ #: ../../library/traceback.rst:389
428
448
msgid ""
429
449
"Returns a string for printing one of the frames involved in the stack. This "
430
450
"method is called for each :class:`FrameSummary` object to be printed by :"
431
451
"meth:`StackSummary.format`. If it returns ``None``, the frame is omitted "
432
452
"from the output."
433
453
msgstr ""
434
454
435
- #: ../../library/traceback.rst:381
455
+ #: ../../library/traceback.rst:398
436
456
msgid ":class:`FrameSummary` Objects"
437
457
msgstr ":class:`FrameSummary` 物件"
438
458
439
- #: ../../library/traceback.rst:385
459
+ #: ../../library/traceback.rst:402
440
460
msgid ""
441
461
"A :class:`FrameSummary` object represents a single frame in a traceback."
442
462
msgstr ""
443
463
444
- #: ../../library/traceback.rst:389
464
+ #: ../../library/traceback.rst:406
445
465
msgid ""
446
466
"Represent a single frame in the traceback or stack that is being formatted "
447
467
"or printed. It may optionally have a stringified version of the frames "
@@ -454,35 +474,35 @@ msgid ""
454
474
"display."
455
475
msgstr ""
456
476
457
- #: ../../library/traceback.rst:402
477
+ #: ../../library/traceback.rst:419
458
478
msgid "Traceback Examples"
459
479
msgstr ""
460
480
461
- #: ../../library/traceback.rst:404
481
+ #: ../../library/traceback.rst:421
462
482
msgid ""
463
483
"This simple example implements a basic read-eval-print loop, similar to (but "
464
484
"less useful than) the standard Python interactive interpreter loop. For a "
465
485
"more complete implementation of the interpreter loop, refer to the :mod:"
466
486
"`code` module. ::"
467
487
msgstr ""
468
488
469
- #: ../../library/traceback.rst:426
489
+ #: ../../library/traceback.rst:443
470
490
msgid ""
471
491
"The following example demonstrates the different ways to print and format "
472
492
"the exception and traceback:"
473
493
msgstr ""
474
494
475
- #: ../../library/traceback.rst:461
495
+ #: ../../library/traceback.rst:478
476
496
msgid "The output for the example would look similar to this:"
477
497
msgstr ""
478
498
479
- #: ../../library/traceback.rst:503
499
+ #: ../../library/traceback.rst:520
480
500
msgid ""
481
501
"The following example shows the different ways to print and format the "
482
502
"stack::"
483
503
msgstr ""
484
504
485
- #: ../../library/traceback.rst:529
505
+ #: ../../library/traceback.rst:546
486
506
msgid "This last example demonstrates the final few formatting functions:"
487
507
msgstr ""
488
508
0 commit comments