Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94423b6

Browse files
authored
[3.12]gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 (GH-126392) (#126404)
(cherry picked from commiteac41c5)
1 parenta235619 commit94423b6

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-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
@@ -106,13 +106,6 @@ Pending Removal in Python 3.14
106106
if:ref:`named placeholders<sqlite3-placeholders>` are used and
107107
*parameters* is a sequence instead of a:class:`dict`.
108108

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

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ Pending Removal in Python 3.15
3737
(``NT = NamedTuple("NT", x=int)``) is deprecated, and will be disallowed in
3838
3.15. Use the class-based syntax or the functional syntax instead.
3939

40+
*:mod:`types`:
41+
42+
*:class:`types.CodeType`: Accessing:attr:`~codeobject.co_lnotab` was
43+
deprecated in:pep:`626`
44+
since 3.10 and was planned to be removed in 3.12,
45+
but it only got a proper:exc:`DeprecationWarning` in 3.12.
46+
May be removed in 3.15.
47+
(Contributed by Nikita Sobolev in:gh:`101866`.)
48+
49+
*:mod:`typing`:
50+
4051
* When using the functional syntax to create a:class:`!NamedTuple` class, failing to
4152
pass a value to the *fields* parameter (``NT = NamedTuple("NT")``) is
4253
deprecated. Passing ``None`` to the *fields* parameter

‎Doc/reference/datamodel.rst

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

14291429
..deprecated::3.12
14301430
This attribute of code objects is deprecated, and may be removed in
1431-
Python 3.14.
1431+
Python 3.15.
14321432

14331433
* - .. attribute:: codeobject.co_stacksize
14341434
- 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
@@ -1338,8 +1338,8 @@ Deprecated
13381338

13391339
* Accessing:attr:`~codeobject.co_lnotab` on code objects was deprecated in
13401340
Python 3.10 via:pep:`626`,
1341-
but it only got a proper:exc:`DeprecationWarning` in 3.12,
1342-
therefore it willbe removed in 3.14.
1341+
but it only got a proper:exc:`DeprecationWarning` in 3.12.
1342+
Maybe removed in 3.15.
13431343
(Contributed by Nikita Sobolev in:gh:`101866`.)
13441344

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp