Skip to content

Commit fc4cda4

Browse files
committed
Address review
1 parent 5713b3b commit fc4cda4

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

Doc/c-api/init_config.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,9 +1278,10 @@ PyConfig
12781278
12791279
Default: ``0``.
12801280
1281-
.. deprecated:: 3.15
1281+
.. deprecated-removed:: 3.15 3.17
12821282
1283-
Deprecated, will become no-op in 3.17.
1283+
Deprecated, :option:`-b` and :option:`!-bb` will become no-op in 3.17.
1284+
:c:member:`~PyConfig.bytes_warning` will be removed in 3.17.
12841285
12851286
.. c:member:: int warn_default_encoding
12861287

Doc/using/cmdline.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ Miscellaneous options
254254
.. versionchanged:: 3.5
255255
Affects also comparisons of :class:`bytes` with :class:`int`.
256256

257-
.. deprecated-removed:: 3.15 3.17
257+
.. deprecated:: 3.15
258258

259-
Deprecate :option:`-b` and :option:`!-bb`
259+
Deprecate :option:`-b` and :option:`!-bb` command line options
260260
and schedule them to become no-op in Python 3.17.
261261
These were primarily helpers for the Python 2 -> 3 transition.
262262
Starting with Python 3.17, no :exc:`BytesWarning` will be raised

Doc/whatsnew/3.15.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ Deprecated
540540
CLI
541541
---
542542

543-
* Deprecate :option:`-b` and :option:`!-bb`
543+
* Deprecate :option:`-b` and :option:`!-bb` command line options
544544
and schedule them to become no-op in Python 3.17.
545545
These were primarily helpers for the Python 2 -> 3 transition.
546546
Starting with Python 3.17, no :exc:`BytesWarning` will be raised
@@ -763,6 +763,11 @@ Deprecated C APIs
763763
:c:func:`_Py_c_abs` are :term:`soft deprecated`.
764764
(Contributed by Sergey B Kirpichev in :gh:`128813`.)
765765

766+
* :c:member:`~PyConfig.bytes_warning` is deprecated
767+
since 3.15 and will be removed in 3.17.
768+
769+
(Contributed by Nikita Sobolev in :gh:`136355`.)
770+
766771

767772
.. Add C API deprecations above alphabetically, not here at the end.
768773
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
Deprecate :option:`-b` and :option:`!-bb` and schedule them
2-
to become no-op in Python 3.17.
1+
Deprecate :option:`-b` and :option:`!-bb` command line options
2+
and schedule them to become no-op in Python 3.17.
3+
4+
Deprecate :c:member:`PyConfig.bytes_warning` field
5+
and schedule its removal in 3.17.

0 commit comments

Comments
 (0)