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-30 00:33 +0000\n "
10
+ "POT-Creation-Date : 2023-06-06 00:35 +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:297
262
+ #: ../../library/traceback.rst:223 ../../library/traceback.rst:311
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,7 +273,7 @@ msgid ""
273
273
"is ``None`` and ``__suppress_context__`` is false."
274
274
msgstr ""
275
275
276
- #: ../../library/traceback.rst:231 ../../library/traceback.rst:300
276
+ #: ../../library/traceback.rst:231 ../../library/traceback.rst:314
277
277
msgid ""
278
278
"Note that when locals are captured, they are also shown in the traceback."
279
279
msgstr ""
@@ -330,85 +330,97 @@ msgid "For syntax errors - the line number where the error occurred."
330
330
msgstr ""
331
331
332
332
#: ../../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
333
339
msgid "For syntax errors - the text where the error occurred."
334
340
msgstr ""
335
341
336
- #: ../../library/traceback.rst:289
342
+ #: ../../library/traceback.rst:296
337
343
msgid "For syntax errors - the offset into the text where the error occurred."
338
344
msgstr ""
339
345
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
341
353
msgid "For syntax errors - the compiler error message."
342
354
msgstr ""
343
355
344
- #: ../../library/traceback.rst:304
356
+ #: ../../library/traceback.rst:318
345
357
msgid ""
346
358
"Print to *file* (default ``sys.stderr``) the exception information returned "
347
359
"by :meth:`format`."
348
360
msgstr ""
349
361
350
- #: ../../library/traceback.rst:311
362
+ #: ../../library/traceback.rst:325
351
363
msgid "Format the exception."
352
364
msgstr ""
353
365
354
- #: ../../library/traceback.rst:313
366
+ #: ../../library/traceback.rst:327
355
367
msgid ""
356
368
"If *chain* is not ``True``, ``__cause__`` and ``__context__`` will not be "
357
369
"formatted."
358
370
msgstr ""
359
371
360
- #: ../../library/traceback.rst:316
372
+ #: ../../library/traceback.rst:330
361
373
msgid ""
362
374
"The return value is a generator of strings, each ending in a newline and "
363
375
"some containing internal newlines. :func:`~traceback.print_exception` is a "
364
376
"wrapper around this method which just prints the lines to a file."
365
377
msgstr ""
366
378
367
- #: ../../library/traceback.rst:320 ../../library/traceback.rst:334
379
+ #: ../../library/traceback.rst:334 ../../library/traceback.rst:348
368
380
msgid ""
369
381
"The message indicating which exception occurred is always the last string in "
370
382
"the output."
371
383
msgstr ""
372
384
373
- #: ../../library/traceback.rst:325
385
+ #: ../../library/traceback.rst:339
374
386
msgid "Format the exception part of the traceback."
375
387
msgstr ""
376
388
377
- #: ../../library/traceback.rst:327
389
+ #: ../../library/traceback.rst:341
378
390
msgid "The return value is a generator of strings, each ending in a newline."
379
391
msgstr ""
380
392
381
- #: ../../library/traceback.rst:329
393
+ #: ../../library/traceback.rst:343
382
394
msgid ""
383
395
"Normally, the generator emits a single string; however, for :exc:"
384
396
"`SyntaxError` exceptions, it emits several lines that (when printed) display "
385
397
"detailed information about where the syntax error occurred."
386
398
msgstr ""
387
399
388
- #: ../../library/traceback.rst:337
400
+ #: ../../library/traceback.rst:351
389
401
msgid "Added the *compact* parameter."
390
402
msgstr "新增 *compact* 參數。"
391
403
392
- #: ../../library/traceback.rst:340
404
+ #: ../../library/traceback.rst:354
393
405
msgid "Added the *max_group_width* and *max_group_depth* parameters."
394
406
msgstr ""
395
407
396
- #: ../../library/traceback.rst:345
408
+ #: ../../library/traceback.rst:359
397
409
msgid ":class:`StackSummary` Objects"
398
410
msgstr ":class:`StackSummary` 物件"
399
411
400
- #: ../../library/traceback.rst:349
412
+ #: ../../library/traceback.rst:363
401
413
msgid ""
402
414
":class:`StackSummary` objects represent a call stack ready for formatting."
403
415
msgstr ""
404
416
405
- #: ../../library/traceback.rst:355
417
+ #: ../../library/traceback.rst:369
406
418
msgid ""
407
419
"Construct a :class:`StackSummary` object from a frame generator (such as is "
408
420
"returned by :func:`~traceback.walk_stack` or :func:`~traceback.walk_tb`)."
409
421
msgstr ""
410
422
411
- #: ../../library/traceback.rst:359
423
+ #: ../../library/traceback.rst:373
412
424
msgid ""
413
425
"If *limit* is supplied, only this many frames are taken from *frame_gen*. If "
414
426
"*lookup_lines* is ``False``, the returned :class:`FrameSummary` objects will "
@@ -418,50 +430,50 @@ msgid ""
418
430
"class:`FrameSummary` are captured as object representations."
419
431
msgstr ""
420
432
421
- #: ../../library/traceback.rst:369
433
+ #: ../../library/traceback.rst:383
422
434
msgid ""
423
435
"Construct a :class:`StackSummary` object from a supplied list of :class:"
424
436
"`FrameSummary` objects or old-style list of tuples. Each tuple should be a "
425
437
"4-tuple with filename, lineno, name, line as the elements."
426
438
msgstr ""
427
439
428
- #: ../../library/traceback.rst:375
440
+ #: ../../library/traceback.rst:389
429
441
msgid ""
430
442
"Returns a list of strings ready for printing. Each string in the resulting "
431
443
"list corresponds to a single frame from the stack. Each string ends in a "
432
444
"newline; the strings may contain internal newlines as well, for those items "
433
445
"with source text lines."
434
446
msgstr ""
435
447
436
- #: ../../library/traceback.rst:380
448
+ #: ../../library/traceback.rst:394
437
449
msgid ""
438
450
"For long sequences of the same frame and line, the first few repetitions are "
439
451
"shown, followed by a summary line stating the exact number of further "
440
452
"repetitions."
441
453
msgstr ""
442
454
443
- #: ../../library/traceback.rst:384
455
+ #: ../../library/traceback.rst:398
444
456
msgid "Long sequences of repeated frames are now abbreviated."
445
457
msgstr ""
446
458
447
- #: ../../library/traceback.rst:389
459
+ #: ../../library/traceback.rst:403
448
460
msgid ""
449
461
"Returns a string for printing one of the frames involved in the stack. This "
450
462
"method is called for each :class:`FrameSummary` object to be printed by :"
451
463
"meth:`StackSummary.format`. If it returns ``None``, the frame is omitted "
452
464
"from the output."
453
465
msgstr ""
454
466
455
- #: ../../library/traceback.rst:398
467
+ #: ../../library/traceback.rst:412
456
468
msgid ":class:`FrameSummary` Objects"
457
469
msgstr ":class:`FrameSummary` 物件"
458
470
459
- #: ../../library/traceback.rst:402
471
+ #: ../../library/traceback.rst:416
460
472
msgid ""
461
473
"A :class:`FrameSummary` object represents a single frame in a traceback."
462
474
msgstr ""
463
475
464
- #: ../../library/traceback.rst:406
476
+ #: ../../library/traceback.rst:420
465
477
msgid ""
466
478
"Represent a single frame in the traceback or stack that is being formatted "
467
479
"or printed. It may optionally have a stringified version of the frames "
@@ -474,35 +486,35 @@ msgid ""
474
486
"display."
475
487
msgstr ""
476
488
477
- #: ../../library/traceback.rst:419
489
+ #: ../../library/traceback.rst:433
478
490
msgid "Traceback Examples"
479
491
msgstr ""
480
492
481
- #: ../../library/traceback.rst:421
493
+ #: ../../library/traceback.rst:435
482
494
msgid ""
483
495
"This simple example implements a basic read-eval-print loop, similar to (but "
484
496
"less useful than) the standard Python interactive interpreter loop. For a "
485
497
"more complete implementation of the interpreter loop, refer to the :mod:"
486
498
"`code` module. ::"
487
499
msgstr ""
488
500
489
- #: ../../library/traceback.rst:443
501
+ #: ../../library/traceback.rst:457
490
502
msgid ""
491
503
"The following example demonstrates the different ways to print and format "
492
504
"the exception and traceback:"
493
505
msgstr ""
494
506
495
- #: ../../library/traceback.rst:478
507
+ #: ../../library/traceback.rst:492
496
508
msgid "The output for the example would look similar to this:"
497
509
msgstr ""
498
510
499
- #: ../../library/traceback.rst:520
511
+ #: ../../library/traceback.rst:534
500
512
msgid ""
501
513
"The following example shows the different ways to print and format the "
502
514
"stack::"
503
515
msgstr ""
504
516
505
- #: ../../library/traceback.rst:546
517
+ #: ../../library/traceback.rst:560
506
518
msgid "This last example demonstrates the final few formatting functions:"
507
519
msgstr ""
508
520
0 commit comments