File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed
Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ the definitions of the names in the context of the language grammar. The
1717specific numeric values which the names map to may change between Python
1818versions.
1919
20+ .. warning ::
21+
22+ The symbol module is deprecated and will be removed in future versions of
23+ Python.
24+
2025This module also provides one additional data object:
2126
2227
Original file line number Diff line number Diff line change @@ -692,9 +692,10 @@ Deprecated
692692 Python versions it will raise a :exc: `TypeError ` for all floats.
693693 (Contributed by Serhiy Storchaka in :issue: `37315 `.)
694694
695- * The :mod: `parser ` module is deprecated and will be removed in future versions
696- of Python. For the majority of use cases, users can leverage the Abstract Syntax
697- Tree (AST) generation and compilation stage, using the :mod: `ast ` module.
695+ * The :mod: `parser ` and :mod: `symbol ` modules are deprecated and will be
696+ removed in future versions of Python. For the majority of use cases,
697+ users can leverage the Abstract Syntax Tree (AST) generation and compilation
698+ stage, using the :mod: `ast ` module.
698699
699700* Using :data: `NotImplemented ` in a boolean context has been deprecated,
700701 as it is almost exclusively the result of incorrect rich comparator
Original file line number Diff line number Diff line change 1111#
1212# make regen-symbol
1313
14+ import warnings
15+
16+ warnings .warn (
17+ "The symbol module is deprecated and will be removed "
18+ "in future versions of Python" ,
19+ DeprecationWarning ,
20+ stacklevel = 2 ,
21+ )
22+
1423#--start constants--
1524single_input = 256
1625file_input = 257
Original file line number Diff line number Diff line change 1+ Deprecate the :mod: `symbol ` module.
You can’t perform that action at this time.
0 commit comments