Skip to content

Commit b6f23a1

Browse files
Apply suggestions from code review
Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 40fcb4e commit b6f23a1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Doc/library/inspect.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ is considered deprecated and may be removed in the future.
11721172

11731173
.. attribute:: frame
11741174

1175-
The frame object that the record corresponds to.
1175+
The :ref:`frame object <frame-objects>` that the record corresponds to.
11761176

11771177
.. attribute:: filename
11781178

@@ -1195,7 +1195,7 @@ is considered deprecated and may be removed in the future.
11951195

11961196
.. attribute:: index
11971197

1198-
The index of the current line being executed in the ``code_context`` list.
1198+
The index of the current line being executed in the :attr:`code_context` list.
11991199

12001200
.. attribute:: positions
12011201

@@ -1232,7 +1232,7 @@ is considered deprecated and may be removed in the future.
12321232

12331233
.. attribute:: index
12341234

1235-
The index of the current line being executed in the ``code_context`` list.
1235+
The index of the current line being executed in the :attr:`code_context` list.
12361236

12371237
.. attribute:: positions
12381238

@@ -1276,7 +1276,7 @@ line.
12761276
is returned.
12771277

12781278
.. versionchanged:: 3.11
1279-
A :class:`Traceback` object is returned inspead of a named tuple.
1279+
A :class:`Traceback` object is returned instead of a named tuple.
12801280

12811281
.. function:: getouterframes(frame, context=1)
12821282

Doc/whatsnew/3.11.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ inspect
289289
regular object (that is backwards compatible with the old tuple-like
290290
interface) that include the extended :pep:`657` position information (end
291291
line number, column and end column). The affected functions are:
292-
:func:`getframeinfo`, :func:`getouterframes`, :func:`getinnerframes`,
293-
:func:`stack` and :func:`trace`. (Contributed by Pablo Galindo in
292+
:func:`inspect.getframeinfo`, :func:`inspect.getouterframes`, :func:`inspect.getinnerframes`,
293+
:func:`inspect.stack` and :func:`inspect.trace`. (Contributed by Pablo Galindo in
294294
:issue:`88116`)
295295

296296
locale
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Change the frame-related functions in the :mod:`inspect` module to return a
22
regular object (that is backwards compatible with the old tuple-like interface)
33
that include the extended :pep:`657` position information (end line number,
4-
column and end column). The affected functions are: :func:`getframeinfo`,
5-
:func:`getouterframes`, :func:`getinnerframes`, :func:`stack` and
6-
:func:`trace`. Patch by Pablo Galindo
4+
column and end column). The affected functions are: :func:`inspect.getframeinfo`,
5+
:func:`inspect.getouterframes`, :func:`inspect.getinnerframes`, :func:`inspect.stack` and
6+
:func:`inspect.trace`. Patch by Pablo Galindo.
77

88

0 commit comments

Comments
 (0)