https://github.com/python/cpython/commit/3bef4af30124518b439362247709f5ae2bf57c11
commit: 3bef4af30124518b439362247709f5ae2bf57c11
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: picnixz <10796600+picn...@users.noreply.github.com>
date: 2025-03-02T17:22:48Z
summary:

[3.13] gh-128481: indicate that the default value for `FrameSummary.end_lineno` 
changed in 3.13 (GH-130755) (#130767)

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+picn...@users.noreply.github.com>

files:
M Doc/library/traceback.rst

diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index ebd691a363959a..291c2f1ce755ac 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -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.

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to