summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAviral Srivastava <avi.srivastava254084@gmail.com>2021-02-01 17:38:44 (GMT)
committerGitHub <noreply@github.com>2021-02-01 17:38:44 (GMT)
commit000cde59847beaf5fa7b73633e1f3c898fe5bf90 (patch)
tree9b6036270daecbf44973288fed04215eeb8d24a5 /Doc/whatsnew
parentb5931f1d9f1f9f907e5cb6e193154672f78c1225 (diff)
downloadcpython-000cde59847beaf5fa7b73633e1f3c898fe5bf90.zip
cpython-000cde59847beaf5fa7b73633e1f3c898fe5bf90.tar.gz
cpython-000cde59847beaf5fa7b73633e1f3c898fe5bf90.tar.bz2
bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348)
For back-compatibility, make the new constructor parameter for public classes Function and Class keyword-only with a default of None. Co-authored-by: Aviral Srivastava <aviralsrivastava@Avirals-MacBook-Air.local Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.10.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 3dccb7c..d80ceec 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -435,6 +435,14 @@ py_compile
Added ``--quiet`` option to command-line interface of :mod:`py_compile`.
(Contributed by Gregory Schevchenko in :issue:`38731`.)
+pyclbr
+------
+
+Added an ``end_lineno`` attribute to the ``Function`` and ``Class``
+objects in the tree returned by :func:`pyclbr.readline` and
+:func:`pyclbr.readline_ex`. It matches the existing (start) ``lineno``.
+(Contributed by Aviral Srivastava in :issue:`38307`.)
+
shelve
------