Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cccc066

Browse files
authored
[3.13] gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 (GH-126392) (#126403)
(cherry picked from commit eac41c5)
1 parent 9e72a3f commit cccc066

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

Doc/deprecations/pending-removal-in-3.14.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@ Pending Removal in Python 3.14
103103
if :ref:`named placeholders <sqlite3-placeholders>` are used and
104104
*parameters* is a sequence instead of a :class:`dict`.
105105

106-
* :class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was
107-
deprecated in :pep:`626`
108-
since 3.10 and was planned to be removed in 3.12,
109-
but it only got a proper :exc:`DeprecationWarning` in 3.12.
110-
May be removed in 3.14.
111-
(Contributed by Nikita Sobolev in :gh:`101866`.)
112-
113106
* :mod:`typing`: :class:`~typing.ByteString`, deprecated since Python 3.9,
114107
now causes a :exc:`DeprecationWarning` to be emitted when it is used.
115108

Doc/deprecations/pending-removal-in-3.15.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ Pending Removal in Python 3.15
5959
but the C version allows any number of positional or keyword arguments,
6060
ignoring every argument.
6161

62+
* :mod:`types`:
63+
64+
* :class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was
65+
deprecated in :pep:`626`
66+
since 3.10 and was planned to be removed in 3.12,
67+
but it only got a proper :exc:`DeprecationWarning` in 3.12.
68+
May be removed in 3.15.
69+
(Contributed by Nikita Sobolev in :gh:`101866`.)
70+
6271
* :mod:`typing`:
6372

6473
* The undocumented keyword argument syntax for creating

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ Special read-only attributes
14601460

14611461
.. deprecated:: 3.12
14621462
This attribute of code objects is deprecated, and may be removed in
1463-
Python 3.14.
1463+
Python 3.15.
14641464

14651465
* - .. attribute:: codeobject.co_stacksize
14661466
- The required stack size of the code object

Doc/whatsnew/3.12.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,8 @@ Deprecated
13271327

13281328
* Accessing :attr:`~codeobject.co_lnotab` on code objects was deprecated in
13291329
Python 3.10 via :pep:`626`,
1330-
but it only got a proper :exc:`DeprecationWarning` in 3.12,
1331-
therefore it will be removed in 3.14.
1330+
but it only got a proper :exc:`DeprecationWarning` in 3.12.
1331+
May be removed in 3.15.
13321332
(Contributed by Nikita Sobolev in :gh:`101866`.)
13331333

13341334
.. include:: ../deprecations/pending-removal-in-3.13.rst

0 commit comments

Comments
 (0)