1:mod:`symbol` --- Constants used with Python parse trees 2======================================================== 3 4.. module:: symbol 5 :synopsis: Constants representing internal nodes of the parse tree. 6 7.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org> 8 9**Source code:** :source:`Lib/symbol.py` 10 11-------------- 12 13This module provides constants which represent the numeric values of internal 14nodes of the parse tree. Unlike most Python constants, these use lower-case 15names. Refer to the file :file:`Grammar/Grammar` in the Python distribution for 16the definitions of the names in the context of the language grammar. The 17specific numeric values which the names map to may change between Python 18versions. 19 20.. warning:: 21 22 The symbol module is deprecated and will be removed in future versions of 23 Python. 24 25This module also provides one additional data object: 26 27 28.. data:: sym_name 29 30 Dictionary mapping the numeric values of the constants defined in this module 31 back to name strings, allowing more human-readable representation of parse trees 32 to be generated. 33