]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] 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:46:26 +0000 (19:46 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2024 17:46:26 +0000 (19:46 +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 8fa323a9d712c1adca95ff01fb340d87e43b4de1..5c07c1122fa6153fd3cb5eb967decb1bac756cbd 100644 (file)
@@ -103,13 +103,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 a55fb6bea3fdaac2f91962f08eb2b081dbd73e98..f0b184b6c804cd537f1474ca475dafd09f18d1d2 100644 (file)
@@ -59,6 +59,15 @@ Pending Removal in Python 3.15
     but the C version allows any number of positional or keyword arguments,
     ignoring every argument.
 
+* :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`:
 
   * The undocumented keyword argument syntax for creating
index a8d3d4de713e7bc1c08f2d8fe8d6f45129c8e9c7..ec338e75aaae7c54dc2c7e946384ccbaba97c9cd 100644 (file)
@@ -1460,7 +1460,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 dc4e3370ce32c5dbede580e9f1da567869d23d96..934ac3270a30bad2c63d7d6663d5bcd8a7ec246b 100644 (file)
@@ -1327,8 +1327,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