mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
bpo-40360: [doc] Rephrase deprecation note about lib2to3 (GH-28122)
This commit is contained in:
parent
ea23e7820f
commit
f0b63d5b56
1 changed files with 9 additions and 6 deletions
|
@ -464,12 +464,15 @@ and off individually. They are described here in more detail.
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
.. deprecated:: 3.10
|
.. deprecated-removed:: 3.11 3.13
|
||||||
Python 3.9 will switch to a PEG parser (see :pep:`617`), and Python 3.10 may
|
Python 3.9 switched to a PEG parser (see :pep:`617`) while lib2to3 is
|
||||||
include new language syntax that is not parsable by lib2to3's LL(1) parser.
|
using a less flexible LL(1) parser. Python 3.10 includes new language
|
||||||
The ``lib2to3`` module may be removed from the standard library in a future
|
syntax that is not parsable by lib2to3's LL(1) parser (see :pep:`634`).
|
||||||
Python version. Consider third-party alternatives such as `LibCST`_ or
|
The ``lib2to3`` module was marked pending for deprecation in Python 3.9
|
||||||
`parso`_.
|
(raising :exc:`PendingDeprecationWarning` on import) and fully deprecated
|
||||||
|
in Python 3.11 (raising :exc:`DeprecationWarning`).
|
||||||
|
It will be removed from the standard library in Python 3.13.
|
||||||
|
Consider third-party alternatives such as `LibCST`_ or `parso`_.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue