]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-128481: indicate that the default value for `FrameSummary.end_lineno` chang...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Mar 2025 17:22:48 +0000 (18:22 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Mar 2025 17:22:48 +0000 (17:22 +0000)
gh-128481: indicate that the default value for `FrameSummary.end_lineno` changed in 3.13 (GH-130755)

The value taken by `FrameSummary.end_lineno` when passing `end_lineno=None` changed in gh-112097.

Previously, a `end_lineno` could be specified to be `None` directly but since 939fc6d, passing None makes
the constructor use the value of `lineno` instead.
(cherry picked from commit c6513f7a627c8918a5e3f3733fa47d34a94ddff9)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Doc/library/traceback.rst

index ebd691a363959afc6b08f985fe8eac8d595ea68f..291c2f1ce755ac81b596ba2e270818b09450cfe2 100644 (file)
@@ -542,6 +542,9 @@ in a :ref:`traceback <traceback-objects>`.
       The last line number of the source code for this frame.
       By default, it is set to ``lineno`` and indexation starts from 1.
 
+      .. versionchanged:: 3.13
+         The default value changed from ``None`` to ``lineno``.
+
    .. attribute:: FrameSummary.colno
 
       The column number of the source code for this frame.