From ac3d8817aa21819d811d2e687662d036a0bb6415 Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye Date: Tue, 7 Jul 2020 22:53:01 +0000 Subject: [PATCH 1/7] remove symbol.sym_name --- Doc/library/symbol.rst | 32 -------------------------------- Doc/whatsnew/3.10.rst | 3 +++ 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 Doc/library/symbol.rst diff --git a/Doc/library/symbol.rst b/Doc/library/symbol.rst deleted file mode 100644 index d56600af29d6e2..00000000000000 --- a/Doc/library/symbol.rst +++ /dev/null @@ -1,32 +0,0 @@ -:mod:`symbol` --- Constants used with Python parse trees -======================================================== - -.. module:: symbol - :synopsis: Constants representing internal nodes of the parse tree. - -.. sectionauthor:: Fred L. Drake, Jr. - -**Source code:** :source:`Lib/symbol.py` - --------------- - -This module provides constants which represent the numeric values of internal -nodes of the parse tree. Unlike most Python constants, these use lower-case -names. Refer to the file :file:`Grammar/Grammar` in the Python distribution for -the definitions of the names in the context of the language grammar. The -specific numeric values which the names map to may change between Python -versions. - -.. warning:: - - The symbol module is deprecated and will be removed in future versions of - Python. - -This module also provides one additional data object: - - -.. data:: sym_name - - Dictionary mapping the numeric values of the constants defined in this module - back to name strings, allowing more human-readable representation of parse trees - to be generated. diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index a3b53ba48e9b7c..24a0b81de36fa1 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -249,3 +249,6 @@ Removed * Removed ``PyUnicode_AsUnicodeCopy()``. Please use :c:func:`PyUnicode_AsUCS4Copy` or :c:func:`PyUnicode_AsWideCharString` (Contributed by Inada Naoki in :issue:`41103`.) + +* Removed docs for the deprecated and removed ``symbol.sym_name``. + (Contributed by Joannah Nanjekye in :issue:`41103`.) From 04c36b1890e42a28f5d1b0b30b03ce5bc0a77b27 Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye Date: Tue, 7 Jul 2020 22:55:54 +0000 Subject: [PATCH 2/7] update issue number in whats new --- Doc/whatsnew/3.10.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 24a0b81de36fa1..a98372bd840b05 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -251,4 +251,4 @@ Removed (Contributed by Inada Naoki in :issue:`41103`.) * Removed docs for the deprecated and removed ``symbol.sym_name``. - (Contributed by Joannah Nanjekye in :issue:`41103`.) + (Contributed by Joannah Nanjekye in :issue:`41234`.) From d800e249906b7889956a38ba5e456e0f0c93965d Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2020 22:59:36 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst diff --git a/Misc/NEWS.d/next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst b/Misc/NEWS.d/next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst new file mode 100644 index 00000000000000..7c839e5f6de823 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst @@ -0,0 +1,2 @@ +Remove docs for the deprecated and removed ``symbol.sym_name``. +(Patchby Joannah Nanjekye) \ No newline at end of file From e7046a3a97f1455a49a6b1c0b5853f075e54deca Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye Date: Tue, 7 Jul 2020 23:07:10 +0000 Subject: [PATCH 4/7] Remove file in language.rst --- Doc/library/language.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/Doc/library/language.rst b/Doc/library/language.rst index 1eac32e4590216..88183cf6960801 100644 --- a/Doc/library/language.rst +++ b/Doc/library/language.rst @@ -16,7 +16,6 @@ These modules include: parser.rst ast.rst symtable.rst - symbol.rst token.rst keyword.rst tokenize.rst From 713d2a2bf97bca26ad333ced96f6efcc108df692 Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> Date: Mon, 13 Jul 2020 18:28:58 -0300 Subject: [PATCH 5/7] Update 2020-07-07-22-59-32.bpo-41234.SMb_vT.rst Fix typo --- .../next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst b/Misc/NEWS.d/next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst index 7c839e5f6de823..3b39864ead4db8 100644 --- a/Misc/NEWS.d/next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst +++ b/Misc/NEWS.d/next/Library/2020-07-07-22-59-32.bpo-41234.SMb_vT.rst @@ -1,2 +1,2 @@ Remove docs for the deprecated and removed ``symbol.sym_name``. -(Patchby Joannah Nanjekye) \ No newline at end of file +(Patch by Joannah Nanjekye) From 4cdb29b79a8d204fc33d75c3e0dd7ddfbd1fc1e5 Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> Date: Tue, 11 Aug 2020 16:54:11 -0300 Subject: [PATCH 6/7] Edit news entry --- Doc/whatsnew/3.10.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index a98372bd840b05..26ed2a450c24db 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -250,5 +250,5 @@ Removed :c:func:`PyUnicode_AsWideCharString` (Contributed by Inada Naoki in :issue:`41103`.) -* Removed docs for the deprecated and removed ``symbol.sym_name``. - (Contributed by Joannah Nanjekye in :issue:`41234`.) +* Removed :module:symbol. +(Contributed by Lysandros Nikolaou in :issue:`40939` and Joannah Nanjekye in :issue:`41234`.) From 25b5eb272fc622add19c5d01e231b32ccf856e19 Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye Date: Tue, 11 Aug 2020 20:30:14 +0000 Subject: [PATCH 7/7] Fix unindent --- Doc/whatsnew/3.10.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 26ed2a450c24db..457b9f3c1577e2 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -251,4 +251,4 @@ Removed (Contributed by Inada Naoki in :issue:`41103`.) * Removed :module:symbol. -(Contributed by Lysandros Nikolaou in :issue:`40939` and Joannah Nanjekye in :issue:`41234`.) + (Contributed by Lysandros Nikolaou in :issue:`40939` and Joannah Nanjekye in :issue:`41234`.)