@@ -63,7 +63,7 @@ Module-Level Functions
63
63
:term: `file <file object> ` or :term: `file-like object ` to
64
64
receive the output.
65
65
66
- If *show_lines * is false , source code lines are not included in the output.
66
+ If *show_lines * is true (the default) , source code lines will be included in the output.
67
67
68
68
If *recent_first * is true, the most recent stack trace entries are printed
69
69
first, otherwise the oldest entries are printed first. The default is false.
@@ -121,7 +121,7 @@ Module-Level Functions
121
121
printed as well, like the interpreter itself does when printing an unhandled
122
122
exception.
123
123
124
- If *show_lines * is false , source code lines are not included in the output.
124
+ If *show_lines * is true , source code lines are included in the output.
125
125
126
126
If *recent_first * is true, the most recent stack trace entries are printed
127
127
first, otherwise the oldest entries are printed first. The default is false.
@@ -165,8 +165,8 @@ Module-Level Functions
165
165
The optional *f * argument can be used to specify an alternate
166
166
:ref: `stack frame <frame-objects >`
167
167
to start. The optional *file * argument has the same meaning as for
168
- :func: `print_tb `. If *show_lines * is `` False `` , source code lines are
169
- not included in the output.
168
+ :func: `print_tb `. If *show_lines * is true , source code lines are
169
+ included in the output.
170
170
171
171
.. versionchanged :: 3.5
172
172
Added negative *limit * support.
@@ -201,7 +201,7 @@ Module-Level Functions
201
201
Print the list of tuples as returned by :func: `extract_tb ` or
202
202
:func: `extract_stack ` as a formatted stack trace to the given file.
203
203
If *file * is ``None ``, the output is written to :data: `sys.stderr `.
204
- If *show_lines * is `` False `` , source code lines are not included in the output.
204
+ If *show_lines * is true , source code lines are included in the output.
205
205
206
206
.. versionchanged :: next
207
207
Added *show_lines * parameter.
@@ -214,8 +214,8 @@ Module-Level Functions
214
214
for printing. Each string in the resulting list corresponds to the item with
215
215
the same index in the argument list. Each string ends in a newline; the
216
216
strings may contain internal newlines as well, for those items whose source
217
- text line is not ``None ``. If *show_lines * is ``False ``, source code lines
218
- are not included in the output.
217
+ text line is not ``None ``. If *show_lines * is ``True ``, source code lines
218
+ are included in the output.
219
219
220
220
.. versionchanged :: next
221
221
Added *show_lines * parameter.
@@ -259,7 +259,7 @@ Module-Level Functions
259
259
containing internal newlines. When these lines are concatenated and printed,
260
260
exactly the same text is printed as does :func: `print_exception `.
261
261
262
- If *show_lines * is false , source code lines are not included in the output.
262
+ If *show_lines * is true , source code lines are included in the output.
263
263
If *recent_first * is true, the most recent stack trace entries are printed
264
264
first, otherwise the oldest entries are printed first. The default is false.
265
265
@@ -279,7 +279,7 @@ Module-Level Functions
279
279
This is like ``print_exc(limit) `` but returns a string instead of printing to
280
280
a file.
281
281
282
- If *show_lines * is false , source code lines are not included in the output.
282
+ If *show_lines * is true , source code lines are included in the output.
283
283
If *recent_first * is true, the most recent stack trace entries are printed
284
284
first, otherwise the oldest entries are printed first. The default is false.
285
285
@@ -478,7 +478,7 @@ the module-level functions described above.
478
478
Print to *file * (default ``sys.stderr ``) the exception information returned by
479
479
:meth: `format `.
480
480
481
- If *show_lines * is false , source code lines from being included in the output.
481
+ If *show_lines * is true , source code lines are included in the output.
482
482
483
483
If *recent_first * is true, the exception is printed first followed by stack
484
484
trace by "most recent call first" order.
@@ -501,7 +501,7 @@ the module-level functions described above.
501
501
some containing internal newlines. :func: `~traceback.print_exception `
502
502
is a wrapper around this method which just prints the lines to a file.
503
503
504
- If *show_lines * is false , source code lines from being included in the output.
504
+ If *show_lines * is true , source code lines are included in the output.
505
505
506
506
If *recent_first * is true, the exception is printed first followed by stack
507
507
trace by "most recent call first" order.
@@ -585,8 +585,7 @@ the module-level functions described above.
585
585
repetitions are shown, followed by a summary line stating the exact
586
586
number of further repetitions.
587
587
588
- The keyword argument *show_lines *, if ``False ``, prevents source code
589
- lines from being included in the output.
588
+ If *show_lines * is true, includes source code lines in the output.
590
589
591
590
.. versionchanged :: 3.6
592
591
Long sequences of repeated frames are now abbreviated.
@@ -602,8 +601,8 @@ the module-level functions described above.
602
601
printed by :meth: `StackSummary.format `. If it returns ``None ``, the
603
602
frame is omitted from the output.
604
603
605
- The keyword argument *show_lines *, if ``False ``, prevents source code
606
- lines from being included in the output.
604
+ The keyword argument *show_lines *, if ``True ``, includes source code
605
+ lines in the output.
607
606
608
607
.. versionadded :: 3.11
609
608
0 commit comments