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 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..457b9f3c1577e2 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 :module:symbol. + (Contributed by Lysandros Nikolaou in :issue:`40939` and Joannah Nanjekye in :issue:`41234`.) 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..3b39864ead4db8 --- /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``. +(Patch by Joannah Nanjekye)