]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40360: Add a What's New entry for lib2to3 pending deprecation (GH-19898)
authorMiro Hrončok <miro@hroncok.cz>
Mon, 4 May 2020 19:02:00 +0000 (21:02 +0200)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 19:02:00 +0000 (12:02 -0700)
Doc/whatsnew/3.9.rst

index cefaf5715d4143d7e6c264b21c884a72ca0cca3f..11e577baa8fb5f75fe7f65f65e439422c761930c 100644 (file)
@@ -608,6 +608,16 @@ Deprecated
 * Passing ``None`` as the first argument to the :func:`shlex.split` function
   has been deprecated.  (Contributed by Zackery Spytz in :issue:`33262`.)
 
+* The :mod:`lib2to3` module now emits a :exc:`PendingDeprecationWarning`.
+  Python 3.9 switched to a PEG parser (see :pep:`617`), and Python 3.10 may
+  include new language syntax that is not parsable by lib2to3's LL(1) parser.
+  The ``lib2to3`` module may be removed from the standard library in a future
+  Python version. Consider third-party alternatives such as `LibCST`_ or
+  `parso`_.
+  (Contributed by Carl Meyer in :issue:`40360`.)
+
+.. _LibCST: https://libcst.readthedocs.io/
+.. _parso: https://parso.readthedocs.io/
 
 Removed
 =======