diff options
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 653d32a..5b53fbe 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -326,6 +326,14 @@ inspect * Add :func:`inspect.ismethodwrapper` for checking if the type of an object is a :class:`~types.MethodWrapperType`. (Contributed by Hakan Çelik in :issue:`29418`.) +* Change the frame-related functions in the :mod:`inspect` module to return a + regular object (that is backwards compatible with the old tuple-like + interface) that include the extended :pep:`657` position information (end + line number, column and end column). The affected functions are: + :func:`inspect.getframeinfo`, :func:`inspect.getouterframes`, :func:`inspect.getinnerframes`, + :func:`inspect.stack` and :func:`inspect.trace`. (Contributed by Pablo Galindo in + :issue:`88116`) + locale ------ |