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
17
17
specific numeric values which the names map to may change between Python
18
18
versions.
19
19
20
+ .. warning ::
21
+
22
+ The symbol module is deprecated and will be removed in future versions of
23
+ Python.
24
+
20
25
This module also provides one additional data object:
21
26
22
27
Original file line number Diff line number Diff line change @@ -692,9 +692,10 @@ Deprecated
692
692
Python versions it will raise a :exc: `TypeError ` for all floats.
693
693
(Contributed by Serhiy Storchaka in :issue: `37315 `.)
694
694
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.
698
699
699
700
* Using :data: `NotImplemented ` in a boolean context has been deprecated,
700
701
as it is almost exclusively the result of incorrect rich comparator
Original file line number Diff line number Diff line change 11
11
#
12
12
# make regen-symbol
13
13
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
+
14
23
#--start constants--
15
24
single_input = 256
16
25
file_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