diff options
author | C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 2022-10-22 19:12:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 19:12:04 (GMT) |
commit | 8f30267ab49e1ef3ac3165a102b2196336547c8a (patch) | |
tree | 3e64fd70ab15dbcf882dbbf37e9a9df078157503 /Doc/library/inspect.rst | |
parent | 62bf5d8d0a36112619436a813ceefb7e4af52c24 (diff) | |
download | cpython-8f30267ab49e1ef3ac3165a102b2196336547c8a.zip cpython-8f30267ab49e1ef3ac3165a102b2196336547c8a.tar.gz cpython-8f30267ab49e1ef3ac3165a102b2196336547c8a.tar.bz2 |
gh-95913: Copyedit & xref FrameInfo in Whatsnew inspect section (#98304)
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r-- | Doc/library/inspect.rst | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 700cd91..44f1ae0 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -434,8 +434,10 @@ attributes: Return ``True`` if the type of object is a :class:`~types.MethodWrapperType`. - These are instances of :class:`~types.MethodWrapperType`, such as :meth:`~object().__str__`, - :meth:`~object().__eq__` and :meth:`~object().__repr__` + These are instances of :class:`~types.MethodWrapperType`, such as :meth:`~object.__str__`, + :meth:`~object.__eq__` and :meth:`~object.__repr__`. + + .. versionadded:: 3.11 .. function:: isroutine(object) @@ -1206,12 +1208,13 @@ is considered deprecated and may be removed in the future. number, start column offset, and end column offset associated with the instruction being executed by the frame this record corresponds to. -.. versionchanged:: 3.5 - Return a named tuple instead of a tuple. + .. versionchanged:: 3.5 + Return a :term:`named tuple` instead of a :class:`tuple`. + + .. versionchanged:: 3.11 + :class:`!FrameInfo` is now a class instance + (that is backwards compatible with the previous :term:`named tuple`). -.. versionchanged:: 3.11 - Changed the return object from a named tuple to a regular object (that is - backwards compatible with the previous named tuple). .. class:: Traceback @@ -1245,6 +1248,11 @@ is considered deprecated and may be removed in the future. the instruction being executed by the frame this traceback corresponds to. + .. versionchanged:: 3.11 + :class:`!Traceback` is now a class instance + (that is backwards compatible with the previous :term:`named tuple`). + + .. note:: Keeping references to frame objects, as found in the first element of the frame |