Skip to content

Commit 18f1c60

Browse files
authored
bpo-40360: Add a What's New entry for lib2to3 pending deprecation (GH-19898)
1 parent 975408c commit 18f1c60

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/whatsnew/3.9.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,16 @@ Deprecated
608608
* Passing ``None`` as the first argument to the :func:`shlex.split` function
609609
has been deprecated. (Contributed by Zackery Spytz in :issue:`33262`.)
610610

611+
* The :mod:`lib2to3` module now emits a :exc:`PendingDeprecationWarning`.
612+
Python 3.9 switched to a PEG parser (see :pep:`617`), and Python 3.10 may
613+
include new language syntax that is not parsable by lib2to3's LL(1) parser.
614+
The ``lib2to3`` module may be removed from the standard library in a future
615+
Python version. Consider third-party alternatives such as `LibCST`_ or
616+
`parso`_.
617+
(Contributed by Carl Meyer in :issue:`40360`.)
618+
619+
.. _LibCST: https://libcst.readthedocs.io/
620+
.. _parso: https://parso.readthedocs.io/
611621

612622
Removed
613623
=======

0 commit comments

Comments
 (0)