]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 (GH-126392)...
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Mon, 4 Nov 2024 17:47:40 +0000 (19:47 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2024 17:47:40 +0000 (19:47 +0200)
(cherry picked from commit eac41c5ddfadf52fbd84ee898ad56aedd5d90a41)

Doc/deprecations/pending-removal-in-3.14.rst
Doc/deprecations/pending-removal-in-3.15.rst
Doc/reference/datamodel.rst
Doc/whatsnew/3.12.rst

index 7eaa80e96138af9f0d96269c605ad7c7a5cb5de8..0e6a100574c3be44a6cecd3721e28b7212b88a2b 100644 (file)
@@ -106,13 +106,6 @@ Pending Removal in Python 3.14
     if :ref:`named placeholders <sqlite3-placeholders>` are used and
     *parameters* is a sequence instead of a :class:`dict`.
 
-* :class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was
-  deprecated in :pep:`626`
-  since 3.10 and was planned to be removed in 3.12,
-  but it only got a proper :exc:`DeprecationWarning` in 3.12.
-  May be removed in 3.14.
-  (Contributed by Nikita Sobolev in :gh:`101866`.)
-
 * :mod:`typing`: :class:`~typing.ByteString`, deprecated since Python 3.9,
   now causes a :exc:`DeprecationWarning` to be emitted when it is used.
 
index f9d1d4564b984c38791828bc33ccf6734e4fd85b..182a72b2e1a5b22f2f523cc79b50e6212d6d6b9b 100644 (file)
@@ -37,6 +37,17 @@ Pending Removal in Python 3.15
     (``NT = NamedTuple("NT", x=int)``) is deprecated, and will be disallowed in
     3.15. Use the class-based syntax or the functional syntax instead.
 
+* :mod:`types`:
+
+  * :class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was
+    deprecated in :pep:`626`
+    since 3.10 and was planned to be removed in 3.12,
+    but it only got a proper :exc:`DeprecationWarning` in 3.12.
+    May be removed in 3.15.
+    (Contributed by Nikita Sobolev in :gh:`101866`.)
+
+* :mod:`typing`:
+
   * When using the functional syntax to create a :class:`!NamedTuple` class, failing to
     pass a value to the *fields* parameter (``NT = NamedTuple("NT")``) is
     deprecated. Passing ``None`` to the *fields* parameter
index bc287e1e7cdcf9409592db907d305ba8cdb60d4d..bdb83790653661527fe58201b2a9072806e369a3 100644 (file)
@@ -1428,7 +1428,7 @@ Special read-only attributes
 
        .. deprecated:: 3.12
           This attribute of code objects is deprecated, and may be removed in
-          Python 3.14.
+          Python 3.15.
 
    * - .. attribute:: codeobject.co_stacksize
      - The required stack size of the code object
index c99c4559a79f910d99989cf2d52cfa8860139b82..e9b5499155dd1bcbd928cc4086fac23ad098e9ab 100644 (file)
@@ -1338,8 +1338,8 @@ Deprecated
 
 * Accessing :attr:`~codeobject.co_lnotab` on code objects was deprecated in
   Python 3.10 via :pep:`626`,
-  but it only got a proper :exc:`DeprecationWarning` in 3.12,
-  therefore it will be removed in 3.14.
+  but it only got a proper :exc:`DeprecationWarning` in 3.12.
+  May be removed in 3.15.
   (Contributed by Nikita Sobolev in :gh:`101866`.)
 
 .. include:: ../deprecations/pending-removal-in-3.13.rst