Skip to content

Commit 89b392b

Browse files
sync with cpython c39500db
1 parent 20acfff commit 89b392b

File tree

1 file changed

+61
-41
lines changed

1 file changed

+61
-41
lines changed

library/traceback.po

Lines changed: 61 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"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"
1111
"PO-Revision-Date: 2018-05-23 16:13+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -259,7 +259,7 @@ msgid ""
259259
"capture data for later printing in a lightweight fashion."
260260
msgstr ""
261261

262-
#: ../../library/traceback.rst:223 ../../library/traceback.rst:283
262+
#: ../../library/traceback.rst:223 ../../library/traceback.rst:297
263263
msgid ""
264264
"Capture an exception for later rendering. *limit*, *lookup_lines* and "
265265
"*capture_locals* are as for the :class:`StackSummary` class."
@@ -273,122 +273,142 @@ msgid ""
273273
"is ``None`` and ``__suppress_context__`` is false."
274274
msgstr ""
275275

276-
#: ../../library/traceback.rst:231 ../../library/traceback.rst:286
276+
#: ../../library/traceback.rst:231 ../../library/traceback.rst:300
277277
msgid ""
278278
"Note that when locals are captured, they are also shown in the traceback."
279279
msgstr ""
280280

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
282291
msgid "A :class:`TracebackException` of the original ``__cause__``."
283292
msgstr ""
284293

285-
#: ../../library/traceback.rst:239
294+
#: ../../library/traceback.rst:245
286295
msgid "A :class:`TracebackException` of the original ``__context__``."
287296
msgstr ""
288297

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
290306
msgid "The ``__suppress_context__`` value from the original exception."
291307
msgstr ""
292308

293-
#: ../../library/traceback.rst:247
309+
#: ../../library/traceback.rst:261
294310
msgid ""
295311
"The ``__notes__`` value from the original exception, or ``None`` if the "
296312
"exception does not have any notes. If it is not ``None`` is it formatted in "
297313
"the traceback after the exception string."
298314
msgstr ""
299315

300-
#: ../../library/traceback.rst:255
316+
#: ../../library/traceback.rst:269
301317
msgid "A :class:`StackSummary` representing the traceback."
302318
msgstr ""
303319

304-
#: ../../library/traceback.rst:259
320+
#: ../../library/traceback.rst:273
305321
msgid "The class of the original traceback."
306322
msgstr ""
307323

308-
#: ../../library/traceback.rst:263
324+
#: ../../library/traceback.rst:277
309325
msgid "For syntax errors - the file name where the error occurred."
310326
msgstr ""
311327

312-
#: ../../library/traceback.rst:267
328+
#: ../../library/traceback.rst:281
313329
msgid "For syntax errors - the line number where the error occurred."
314330
msgstr ""
315331

316-
#: ../../library/traceback.rst:271
332+
#: ../../library/traceback.rst:285
317333
msgid "For syntax errors - the text where the error occurred."
318334
msgstr ""
319335

320-
#: ../../library/traceback.rst:275
336+
#: ../../library/traceback.rst:289
321337
msgid "For syntax errors - the offset into the text where the error occurred."
322338
msgstr ""
323339

324-
#: ../../library/traceback.rst:279
340+
#: ../../library/traceback.rst:293
325341
msgid "For syntax errors - the compiler error message."
326342
msgstr ""
327343

328-
#: ../../library/traceback.rst:290
344+
#: ../../library/traceback.rst:304
329345
msgid ""
330346
"Print to *file* (default ``sys.stderr``) the exception information returned "
331347
"by :meth:`format`."
332348
msgstr ""
333349

334-
#: ../../library/traceback.rst:297
350+
#: ../../library/traceback.rst:311
335351
msgid "Format the exception."
336352
msgstr ""
337353

338-
#: ../../library/traceback.rst:299
354+
#: ../../library/traceback.rst:313
339355
msgid ""
340356
"If *chain* is not ``True``, ``__cause__`` and ``__context__`` will not be "
341357
"formatted."
342358
msgstr ""
343359

344-
#: ../../library/traceback.rst:302
360+
#: ../../library/traceback.rst:316
345361
msgid ""
346362
"The return value is a generator of strings, each ending in a newline and "
347363
"some containing internal newlines. :func:`~traceback.print_exception` is a "
348364
"wrapper around this method which just prints the lines to a file."
349365
msgstr ""
350366

351-
#: ../../library/traceback.rst:306 ../../library/traceback.rst:320
367+
#: ../../library/traceback.rst:320 ../../library/traceback.rst:334
352368
msgid ""
353369
"The message indicating which exception occurred is always the last string in "
354370
"the output."
355371
msgstr ""
356372

357-
#: ../../library/traceback.rst:311
373+
#: ../../library/traceback.rst:325
358374
msgid "Format the exception part of the traceback."
359375
msgstr ""
360376

361-
#: ../../library/traceback.rst:313
377+
#: ../../library/traceback.rst:327
362378
msgid "The return value is a generator of strings, each ending in a newline."
363379
msgstr ""
364380

365-
#: ../../library/traceback.rst:315
381+
#: ../../library/traceback.rst:329
366382
msgid ""
367383
"Normally, the generator emits a single string; however, for :exc:"
368384
"`SyntaxError` exceptions, it emits several lines that (when printed) display "
369385
"detailed information about where the syntax error occurred."
370386
msgstr ""
371387

372-
#: ../../library/traceback.rst:323
388+
#: ../../library/traceback.rst:337
373389
msgid "Added the *compact* parameter."
374390
msgstr "新增 *compact* 參數。"
375391

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
377397
msgid ":class:`StackSummary` Objects"
378398
msgstr ":class:`StackSummary` 物件"
379399

380-
#: ../../library/traceback.rst:332
400+
#: ../../library/traceback.rst:349
381401
msgid ""
382402
":class:`StackSummary` objects represent a call stack ready for formatting."
383403
msgstr ""
384404

385-
#: ../../library/traceback.rst:338
405+
#: ../../library/traceback.rst:355
386406
msgid ""
387407
"Construct a :class:`StackSummary` object from a frame generator (such as is "
388408
"returned by :func:`~traceback.walk_stack` or :func:`~traceback.walk_tb`)."
389409
msgstr ""
390410

391-
#: ../../library/traceback.rst:342
411+
#: ../../library/traceback.rst:359
392412
msgid ""
393413
"If *limit* is supplied, only this many frames are taken from *frame_gen*. If "
394414
"*lookup_lines* is ``False``, the returned :class:`FrameSummary` objects will "
@@ -398,50 +418,50 @@ msgid ""
398418
"class:`FrameSummary` are captured as object representations."
399419
msgstr ""
400420

401-
#: ../../library/traceback.rst:352
421+
#: ../../library/traceback.rst:369
402422
msgid ""
403423
"Construct a :class:`StackSummary` object from a supplied list of :class:"
404424
"`FrameSummary` objects or old-style list of tuples. Each tuple should be a "
405425
"4-tuple with filename, lineno, name, line as the elements."
406426
msgstr ""
407427

408-
#: ../../library/traceback.rst:358
428+
#: ../../library/traceback.rst:375
409429
msgid ""
410430
"Returns a list of strings ready for printing. Each string in the resulting "
411431
"list corresponds to a single frame from the stack. Each string ends in a "
412432
"newline; the strings may contain internal newlines as well, for those items "
413433
"with source text lines."
414434
msgstr ""
415435

416-
#: ../../library/traceback.rst:363
436+
#: ../../library/traceback.rst:380
417437
msgid ""
418438
"For long sequences of the same frame and line, the first few repetitions are "
419439
"shown, followed by a summary line stating the exact number of further "
420440
"repetitions."
421441
msgstr ""
422442

423-
#: ../../library/traceback.rst:367
443+
#: ../../library/traceback.rst:384
424444
msgid "Long sequences of repeated frames are now abbreviated."
425445
msgstr ""
426446

427-
#: ../../library/traceback.rst:372
447+
#: ../../library/traceback.rst:389
428448
msgid ""
429449
"Returns a string for printing one of the frames involved in the stack. This "
430450
"method is called for each :class:`FrameSummary` object to be printed by :"
431451
"meth:`StackSummary.format`. If it returns ``None``, the frame is omitted "
432452
"from the output."
433453
msgstr ""
434454

435-
#: ../../library/traceback.rst:381
455+
#: ../../library/traceback.rst:398
436456
msgid ":class:`FrameSummary` Objects"
437457
msgstr ":class:`FrameSummary` 物件"
438458

439-
#: ../../library/traceback.rst:385
459+
#: ../../library/traceback.rst:402
440460
msgid ""
441461
"A :class:`FrameSummary` object represents a single frame in a traceback."
442462
msgstr ""
443463

444-
#: ../../library/traceback.rst:389
464+
#: ../../library/traceback.rst:406
445465
msgid ""
446466
"Represent a single frame in the traceback or stack that is being formatted "
447467
"or printed. It may optionally have a stringified version of the frames "
@@ -454,35 +474,35 @@ msgid ""
454474
"display."
455475
msgstr ""
456476

457-
#: ../../library/traceback.rst:402
477+
#: ../../library/traceback.rst:419
458478
msgid "Traceback Examples"
459479
msgstr ""
460480

461-
#: ../../library/traceback.rst:404
481+
#: ../../library/traceback.rst:421
462482
msgid ""
463483
"This simple example implements a basic read-eval-print loop, similar to (but "
464484
"less useful than) the standard Python interactive interpreter loop. For a "
465485
"more complete implementation of the interpreter loop, refer to the :mod:"
466486
"`code` module. ::"
467487
msgstr ""
468488

469-
#: ../../library/traceback.rst:426
489+
#: ../../library/traceback.rst:443
470490
msgid ""
471491
"The following example demonstrates the different ways to print and format "
472492
"the exception and traceback:"
473493
msgstr ""
474494

475-
#: ../../library/traceback.rst:461
495+
#: ../../library/traceback.rst:478
476496
msgid "The output for the example would look similar to this:"
477497
msgstr ""
478498

479-
#: ../../library/traceback.rst:503
499+
#: ../../library/traceback.rst:520
480500
msgid ""
481501
"The following example shows the different ways to print and format the "
482502
"stack::"
483503
msgstr ""
484504

485-
#: ../../library/traceback.rst:529
505+
#: ../../library/traceback.rst:546
486506
msgid "This last example demonstrates the final few formatting functions:"
487507
msgstr ""
488508

0 commit comments

Comments
 (0)