Skip to content

Commit 8d38237

Browse files
committed
fix doc
1 parent 6bb5450 commit 8d38237

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

Doc/library/traceback.rst

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,11 @@ Module-Level Functions
6767

6868
If *recent_first* is true, the most recent stack trace entries are printed
6969
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`.
7875

7976
.. note::
8077

@@ -88,7 +85,7 @@ Module-Level Functions
8885
Added negative *limit* support.
8986

9087
.. versionchanged:: next
91-
Added *show_lines* and *recent_first* parameters.
88+
Added the *show_lines* and *recent_first* parameters.
9289

9390

9491
.. function:: print_exception(exc, /[, value, tb], limit=None, \
@@ -134,7 +131,7 @@ Module-Level Functions
134131
positional-only.
135132

136133
.. versionchanged:: next
137-
Added *show_lines* and *recent_first* parameters.
134+
Added the *show_lines* and *recent_first* parameters.
138135

139136

140137
.. function:: print_exc(limit=None, file=None, chain=True, *, show_lines=True, recent_first=False)
@@ -143,7 +140,7 @@ Module-Level Functions
143140
chain=chain, show_lines=show_lines, recent_first=recent_first)``.
144141

145142
.. versionchanged:: next
146-
Added *show_lines* and *recent_first* parameters.
143+
Added the *show_lines* and *recent_first* parameters.
147144

148145

149146
.. function:: print_last(limit=None, file=None, chain=True, *, show_lines=True, recent_first=False)
@@ -154,7 +151,7 @@ Module-Level Functions
154151
prompt (see :data:`sys.last_exc`).
155152

156153
.. versionchanged:: next
157-
Added *show_lines* and *recent_first* parameters.
154+
Added the *show_lines* and *recent_first* parameters.
158155

159156

160157
.. function:: print_stack(f=None, limit=None, file=None, *, show_lines=True, recent_first=False)
@@ -172,7 +169,7 @@ Module-Level Functions
172169
Added negative *limit* support.
173170

174171
.. versionchanged:: next
175-
Added *show_lines* and *recent_first* parameters.
172+
Added the *show_lines* and *recent_first* parameters.
176173

177174

178175
.. function:: extract_tb(tb, limit=None)
@@ -204,7 +201,7 @@ Module-Level Functions
204201
If *show_lines* is true, source code lines are included in the output.
205202

206203
.. versionchanged:: next
207-
Added *show_lines* parameter.
204+
Added the *show_lines* parameter.
208205

209206

210207
.. function:: format_list(extracted_list, *, show_lines=True)
@@ -218,7 +215,7 @@ Module-Level Functions
218215
are included in the output.
219216

220217
.. versionchanged:: next
221-
Added *show_lines* parameter.
218+
Added the *show_lines* parameter.
222219

223220

224221
.. function:: format_exception_only(exc, /[, value], *, show_group=False)
@@ -271,7 +268,7 @@ Module-Level Functions
271268
:func:`print_exception`.
272269

273270
.. versionchanged:: next
274-
Added *show_lines* and *recent_first* parameters.
271+
Added the *show_lines* and *recent_first* parameters.
275272

276273

277274
.. function:: format_exc(limit=None, chain=True, *, show_lines=True, recent_first=False)
@@ -284,7 +281,7 @@ Module-Level Functions
284281
first, otherwise the oldest entries are printed first. The default is false.
285282

286283
.. versionchanged:: next
287-
Added *show_lines* and *recent_first* parameters.
284+
Added the *show_lines* and *recent_first* parameters.
288285

289286

290287
.. function:: format_tb(tb, limit=None, *, show_lines=True, recent_first=False)
@@ -294,7 +291,7 @@ Module-Level Functions
294291
If *recent_first* is true, ``reversed(extract_tb(tb, limit))`` is used.
295292

296293
.. versionchanged:: next
297-
Added *show_lines* and *recent_first* parameters.
294+
Added the *show_lines* and *recent_first* parameters.
298295

299296

300297
.. function:: format_stack(f=None, limit=None, *, show_lines=True, recent_first=False)
@@ -304,7 +301,7 @@ Module-Level Functions
304301
If *recent_first* is true, ``reversed(extract_stack(f, limit))`` is used.
305302

306303
.. versionchanged:: next
307-
Added *show_lines* and *recent_first* parameters.
304+
Added the *show_lines* and *recent_first* parameters.
308305

309306
.. function:: clear_frames(tb)
310307

@@ -488,7 +485,7 @@ the module-level functions described above.
488485
.. versionadded:: 3.11
489486

490487
.. versionchanged:: next
491-
Added *show_lines* and *recent_first* parameters.
488+
Added the *show_lines* and *recent_first* parameters.
492489

493490
.. method:: format(*, chain=True, show_lines=True, recent_first=False)
494491

@@ -509,7 +506,7 @@ the module-level functions described above.
509506
followed by the exception.
510507

511508
.. versionchanged:: next
512-
Added *show_lines* and *recent_first* parameters.
509+
Added the *show_lines* and *recent_first* parameters.
513510

514511
.. method:: format_exception_only(*, show_group=False)
515512

0 commit comments

Comments
 (0)