diff options
author | Aviral Srivastava <avi.srivastava254084@gmail.com> | 2021-02-01 17:38:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 17:38:44 (GMT) |
commit | 000cde59847beaf5fa7b73633e1f3c898fe5bf90 (patch) | |
tree | 9b6036270daecbf44973288fed04215eeb8d24a5 /Misc | |
parent | b5931f1d9f1f9f907e5cb6e193154672f78c1225 (diff) | |
download | cpython-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 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-03-16-03-03-21.bpo-38307.2cmw2i.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-03-16-03-03-21.bpo-38307.2cmw2i.rst b/Misc/NEWS.d/next/Library/2020-03-16-03-03-21.bpo-38307.2cmw2i.rst new file mode 100644 index 0000000..3580899 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-03-16-03-03-21.bpo-38307.2cmw2i.rst @@ -0,0 +1,3 @@ +Add an 'end_lineno' attribute to the Class and Function objects that appear in the
+tree returned by pyclbr functions. This and the existing 'lineno'
+attribute define the extent of class and def statements. Patch by Aviral Srivastava.
|