@@ -67,14 +67,11 @@ Module-Level Functions
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.
70
-
71
- .. note ::
72
- ``recent_first=True `` is useful for showing stack traces in places where
73
- people see the top of the stack trace first, such as in a web browser.
74
-
75
- ``recent_first=False `` is useful for showing stack traces in places where
76
- people see the bottom of the stack trace first, such as a console or log
77
- files watched with :command: `tail -f `.
70
+ ``recent_first=True `` is useful for showing stack traces in places where
71
+ people see the top of the stack trace first, such as in a web browser.
72
+ ``recent_first=False `` is useful for showing stack traces in places where
73
+ people see the bottom of the stack trace first, such as a console or log
74
+ files watched with :command: `tail -f `.
78
75
79
76
.. note ::
80
77
@@ -88,7 +85,7 @@ Module-Level Functions
88
85
Added negative *limit * support.
89
86
90
87
.. versionchanged :: next
91
- Added *show_lines * and *recent_first * parameters.
88
+ Added the *show_lines * and *recent_first * parameters.
92
89
93
90
94
91
.. function :: print_exception(exc, /[, value, tb], limit=None, \
@@ -134,7 +131,7 @@ Module-Level Functions
134
131
positional-only.
135
132
136
133
.. versionchanged :: next
137
- Added *show_lines * and *recent_first * parameters.
134
+ Added the *show_lines * and *recent_first * parameters.
138
135
139
136
140
137
.. function :: print_exc(limit=None, file=None, chain=True, *, show_lines=True, recent_first=False)
@@ -143,7 +140,7 @@ Module-Level Functions
143
140
chain=chain, show_lines=show_lines, recent_first=recent_first) ``.
144
141
145
142
.. versionchanged :: next
146
- Added *show_lines * and *recent_first * parameters.
143
+ Added the *show_lines * and *recent_first * parameters.
147
144
148
145
149
146
.. function :: print_last(limit=None, file=None, chain=True, *, show_lines=True, recent_first=False)
@@ -154,7 +151,7 @@ Module-Level Functions
154
151
prompt (see :data: `sys.last_exc `).
155
152
156
153
.. versionchanged :: next
157
- Added *show_lines * and *recent_first * parameters.
154
+ Added the *show_lines * and *recent_first * parameters.
158
155
159
156
160
157
.. function :: print_stack(f=None, limit=None, file=None, *, show_lines=True, recent_first=False)
@@ -172,7 +169,7 @@ Module-Level Functions
172
169
Added negative *limit * support.
173
170
174
171
.. versionchanged :: next
175
- Added *show_lines * and *recent_first * parameters.
172
+ Added the *show_lines * and *recent_first * parameters.
176
173
177
174
178
175
.. function :: extract_tb(tb, limit=None)
@@ -204,7 +201,7 @@ Module-Level Functions
204
201
If *show_lines * is true, source code lines are included in the output.
205
202
206
203
.. versionchanged :: next
207
- Added *show_lines * parameter.
204
+ Added the *show_lines * parameter.
208
205
209
206
210
207
.. function :: format_list(extracted_list, *, show_lines=True)
@@ -218,7 +215,7 @@ Module-Level Functions
218
215
are included in the output.
219
216
220
217
.. versionchanged :: next
221
- Added *show_lines * parameter.
218
+ Added the *show_lines * parameter.
222
219
223
220
224
221
.. function :: format_exception_only(exc, /[, value], *, show_group=False)
@@ -271,7 +268,7 @@ Module-Level Functions
271
268
:func: `print_exception `.
272
269
273
270
.. versionchanged :: next
274
- Added *show_lines * and *recent_first * parameters.
271
+ Added the *show_lines * and *recent_first * parameters.
275
272
276
273
277
274
.. function :: format_exc(limit=None, chain=True, *, show_lines=True, recent_first=False)
@@ -284,7 +281,7 @@ Module-Level Functions
284
281
first, otherwise the oldest entries are printed first. The default is false.
285
282
286
283
.. versionchanged :: next
287
- Added *show_lines * and *recent_first * parameters.
284
+ Added the *show_lines * and *recent_first * parameters.
288
285
289
286
290
287
.. function :: format_tb(tb, limit=None, *, show_lines=True, recent_first=False)
@@ -294,7 +291,7 @@ Module-Level Functions
294
291
If *recent_first * is true, ``reversed(extract_tb(tb, limit)) `` is used.
295
292
296
293
.. versionchanged :: next
297
- Added *show_lines * and *recent_first * parameters.
294
+ Added the *show_lines * and *recent_first * parameters.
298
295
299
296
300
297
.. function :: format_stack(f=None, limit=None, *, show_lines=True, recent_first=False)
@@ -304,7 +301,7 @@ Module-Level Functions
304
301
If *recent_first * is true, ``reversed(extract_stack(f, limit)) `` is used.
305
302
306
303
.. versionchanged :: next
307
- Added *show_lines * and *recent_first * parameters.
304
+ Added the *show_lines * and *recent_first * parameters.
308
305
309
306
.. function :: clear_frames(tb)
310
307
@@ -488,7 +485,7 @@ the module-level functions described above.
488
485
.. versionadded :: 3.11
489
486
490
487
.. versionchanged :: next
491
- Added *show_lines * and *recent_first * parameters.
488
+ Added the *show_lines * and *recent_first * parameters.
492
489
493
490
.. method :: format(*, chain=True, show_lines=True, recent_first=False)
494
491
@@ -509,7 +506,7 @@ the module-level functions described above.
509
506
followed by the exception.
510
507
511
508
.. versionchanged :: next
512
- Added *show_lines * and *recent_first * parameters.
509
+ Added the *show_lines * and *recent_first * parameters.
513
510
514
511
.. method :: format_exception_only(*, show_group=False)
515
512
0 commit comments