Skip to content

Commit 9808209

Browse files
sync with cpython faae548e
1 parent 6ba412d commit 9808209

File tree

1 file changed

+45
-33
lines changed

1 file changed

+45
-33
lines changed

library/traceback.po

Lines changed: 45 additions & 33 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-30 00:33+0000\n"
10+
"POT-Creation-Date: 2023-06-06 00:35+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:297
262+
#: ../../library/traceback.rst:223 ../../library/traceback.rst:311
263263
msgid ""
264264
"Capture an exception for later rendering. *limit*, *lookup_lines* and "
265265
"*capture_locals* are as for the :class:`StackSummary` class."
@@ -273,7 +273,7 @@ msgid ""
273273
"is ``None`` and ``__suppress_context__`` is false."
274274
msgstr ""
275275

276-
#: ../../library/traceback.rst:231 ../../library/traceback.rst:300
276+
#: ../../library/traceback.rst:231 ../../library/traceback.rst:314
277277
msgid ""
278278
"Note that when locals are captured, they are also shown in the traceback."
279279
msgstr ""
@@ -330,85 +330,97 @@ msgid "For syntax errors - the line number where the error occurred."
330330
msgstr ""
331331

332332
#: ../../library/traceback.rst:285
333+
msgid ""
334+
"For syntax errors - the end line number where the error occurred. Can be "
335+
"``None`` if not present."
336+
msgstr ""
337+
338+
#: ../../library/traceback.rst:292
333339
msgid "For syntax errors - the text where the error occurred."
334340
msgstr ""
335341

336-
#: ../../library/traceback.rst:289
342+
#: ../../library/traceback.rst:296
337343
msgid "For syntax errors - the offset into the text where the error occurred."
338344
msgstr ""
339345

340-
#: ../../library/traceback.rst:293
346+
#: ../../library/traceback.rst:300
347+
msgid ""
348+
"For syntax errors - the end offset into the text where the error occurred. "
349+
"Can be ``None`` if not present."
350+
msgstr ""
351+
352+
#: ../../library/traceback.rst:307
341353
msgid "For syntax errors - the compiler error message."
342354
msgstr ""
343355

344-
#: ../../library/traceback.rst:304
356+
#: ../../library/traceback.rst:318
345357
msgid ""
346358
"Print to *file* (default ``sys.stderr``) the exception information returned "
347359
"by :meth:`format`."
348360
msgstr ""
349361

350-
#: ../../library/traceback.rst:311
362+
#: ../../library/traceback.rst:325
351363
msgid "Format the exception."
352364
msgstr ""
353365

354-
#: ../../library/traceback.rst:313
366+
#: ../../library/traceback.rst:327
355367
msgid ""
356368
"If *chain* is not ``True``, ``__cause__`` and ``__context__`` will not be "
357369
"formatted."
358370
msgstr ""
359371

360-
#: ../../library/traceback.rst:316
372+
#: ../../library/traceback.rst:330
361373
msgid ""
362374
"The return value is a generator of strings, each ending in a newline and "
363375
"some containing internal newlines. :func:`~traceback.print_exception` is a "
364376
"wrapper around this method which just prints the lines to a file."
365377
msgstr ""
366378

367-
#: ../../library/traceback.rst:320 ../../library/traceback.rst:334
379+
#: ../../library/traceback.rst:334 ../../library/traceback.rst:348
368380
msgid ""
369381
"The message indicating which exception occurred is always the last string in "
370382
"the output."
371383
msgstr ""
372384

373-
#: ../../library/traceback.rst:325
385+
#: ../../library/traceback.rst:339
374386
msgid "Format the exception part of the traceback."
375387
msgstr ""
376388

377-
#: ../../library/traceback.rst:327
389+
#: ../../library/traceback.rst:341
378390
msgid "The return value is a generator of strings, each ending in a newline."
379391
msgstr ""
380392

381-
#: ../../library/traceback.rst:329
393+
#: ../../library/traceback.rst:343
382394
msgid ""
383395
"Normally, the generator emits a single string; however, for :exc:"
384396
"`SyntaxError` exceptions, it emits several lines that (when printed) display "
385397
"detailed information about where the syntax error occurred."
386398
msgstr ""
387399

388-
#: ../../library/traceback.rst:337
400+
#: ../../library/traceback.rst:351
389401
msgid "Added the *compact* parameter."
390402
msgstr "新增 *compact* 參數。"
391403

392-
#: ../../library/traceback.rst:340
404+
#: ../../library/traceback.rst:354
393405
msgid "Added the *max_group_width* and *max_group_depth* parameters."
394406
msgstr ""
395407

396-
#: ../../library/traceback.rst:345
408+
#: ../../library/traceback.rst:359
397409
msgid ":class:`StackSummary` Objects"
398410
msgstr ":class:`StackSummary` 物件"
399411

400-
#: ../../library/traceback.rst:349
412+
#: ../../library/traceback.rst:363
401413
msgid ""
402414
":class:`StackSummary` objects represent a call stack ready for formatting."
403415
msgstr ""
404416

405-
#: ../../library/traceback.rst:355
417+
#: ../../library/traceback.rst:369
406418
msgid ""
407419
"Construct a :class:`StackSummary` object from a frame generator (such as is "
408420
"returned by :func:`~traceback.walk_stack` or :func:`~traceback.walk_tb`)."
409421
msgstr ""
410422

411-
#: ../../library/traceback.rst:359
423+
#: ../../library/traceback.rst:373
412424
msgid ""
413425
"If *limit* is supplied, only this many frames are taken from *frame_gen*. If "
414426
"*lookup_lines* is ``False``, the returned :class:`FrameSummary` objects will "
@@ -418,50 +430,50 @@ msgid ""
418430
"class:`FrameSummary` are captured as object representations."
419431
msgstr ""
420432

421-
#: ../../library/traceback.rst:369
433+
#: ../../library/traceback.rst:383
422434
msgid ""
423435
"Construct a :class:`StackSummary` object from a supplied list of :class:"
424436
"`FrameSummary` objects or old-style list of tuples. Each tuple should be a "
425437
"4-tuple with filename, lineno, name, line as the elements."
426438
msgstr ""
427439

428-
#: ../../library/traceback.rst:375
440+
#: ../../library/traceback.rst:389
429441
msgid ""
430442
"Returns a list of strings ready for printing. Each string in the resulting "
431443
"list corresponds to a single frame from the stack. Each string ends in a "
432444
"newline; the strings may contain internal newlines as well, for those items "
433445
"with source text lines."
434446
msgstr ""
435447

436-
#: ../../library/traceback.rst:380
448+
#: ../../library/traceback.rst:394
437449
msgid ""
438450
"For long sequences of the same frame and line, the first few repetitions are "
439451
"shown, followed by a summary line stating the exact number of further "
440452
"repetitions."
441453
msgstr ""
442454

443-
#: ../../library/traceback.rst:384
455+
#: ../../library/traceback.rst:398
444456
msgid "Long sequences of repeated frames are now abbreviated."
445457
msgstr ""
446458

447-
#: ../../library/traceback.rst:389
459+
#: ../../library/traceback.rst:403
448460
msgid ""
449461
"Returns a string for printing one of the frames involved in the stack. This "
450462
"method is called for each :class:`FrameSummary` object to be printed by :"
451463
"meth:`StackSummary.format`. If it returns ``None``, the frame is omitted "
452464
"from the output."
453465
msgstr ""
454466

455-
#: ../../library/traceback.rst:398
467+
#: ../../library/traceback.rst:412
456468
msgid ":class:`FrameSummary` Objects"
457469
msgstr ":class:`FrameSummary` 物件"
458470

459-
#: ../../library/traceback.rst:402
471+
#: ../../library/traceback.rst:416
460472
msgid ""
461473
"A :class:`FrameSummary` object represents a single frame in a traceback."
462474
msgstr ""
463475

464-
#: ../../library/traceback.rst:406
476+
#: ../../library/traceback.rst:420
465477
msgid ""
466478
"Represent a single frame in the traceback or stack that is being formatted "
467479
"or printed. It may optionally have a stringified version of the frames "
@@ -474,35 +486,35 @@ msgid ""
474486
"display."
475487
msgstr ""
476488

477-
#: ../../library/traceback.rst:419
489+
#: ../../library/traceback.rst:433
478490
msgid "Traceback Examples"
479491
msgstr ""
480492

481-
#: ../../library/traceback.rst:421
493+
#: ../../library/traceback.rst:435
482494
msgid ""
483495
"This simple example implements a basic read-eval-print loop, similar to (but "
484496
"less useful than) the standard Python interactive interpreter loop. For a "
485497
"more complete implementation of the interpreter loop, refer to the :mod:"
486498
"`code` module. ::"
487499
msgstr ""
488500

489-
#: ../../library/traceback.rst:443
501+
#: ../../library/traceback.rst:457
490502
msgid ""
491503
"The following example demonstrates the different ways to print and format "
492504
"the exception and traceback:"
493505
msgstr ""
494506

495-
#: ../../library/traceback.rst:478
507+
#: ../../library/traceback.rst:492
496508
msgid "The output for the example would look similar to this:"
497509
msgstr ""
498510

499-
#: ../../library/traceback.rst:520
511+
#: ../../library/traceback.rst:534
500512
msgid ""
501513
"The following example shows the different ways to print and format the "
502514
"stack::"
503515
msgstr ""
504516

505-
#: ../../library/traceback.rst:546
517+
#: ../../library/traceback.rst:560
506518
msgid "This last example demonstrates the final few formatting functions:"
507519
msgstr ""
508520

0 commit comments

Comments
 (0)