Skip to content

gh-136355: Deprecate -b and -bb CLI flags in 3.15 - #136363

Merged
sobolevn merged 8 commits into
python:mainfrom
sobolevn:issue-136355
Sep 14, 2025
Merged

sobolevn merged 8 commits into
python:mainfrom
sobolevn:issue-136355

Conversation

@sobolevn

@sobolevn sobolevn commented Jul 7, 2025 •

Copy link
Copy Markdown
Member

@StanFromIreland StanFromIreland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be added to pending-removal-in-3.17.rst?

Also, -bb is not documented and must be unliked/escaped (I don't know what to call: !) to stop errors.

Comment thread Doc/using/cmdline.rst Resolved
Comment thread Python/initconfig.c Resolved
Comment thread Python/initconfig.c Resolved

@malemburg malemburg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the wording changes, this LGTM.

Comment thread Doc/whatsnew/3.15.rst Resolved
@bedevere-app

bedevere-app Bot commented Jul 7, 2025

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Comment thread Doc/using/cmdline.rst Resolved
Comment thread Doc/using/cmdline.rst Resolved
Comment thread Doc/whatsnew/3.15.rst Resolved

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the PR to not emit a deprecation warning and not schedule the flag removal?

Can you also deprecate PyConfig.bytes_warning member in the doc? https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.bytes_warning

@sobolevn
sobolevn requested a review from AA-Turner as a code owner September 10, 2025 15:50
Comment thread Doc/using/cmdline.rst Resolved
@sobolevn
sobolevn requested a review from FFY00 as a code owner September 10, 2025 16:04
@sobolevn

sobolevn commented Sep 10, 2025 •

Copy link
Copy Markdown
Member Author

Done! I addressed all feedback: now we no longer plan to remove -b and -bb, we will only be making them no-op. No warning is raised.

Please, take another look :)

Comment thread Doc/c-api/init_config.rst Resolved
Comment thread Doc/using/cmdline.rst Resolved
Comment thread Doc/whatsnew/3.15.rst Resolved
@malemburg

Copy link
Copy Markdown
Member

I don't think we should remove these options anytime soon. Why possibly break code that's using them ?

Instead, we could simply remove the documentation and make them no-ops, but still accept them on the command line.

Comment thread Doc/c-api/init_config.rst Resolved
sobolevn and others added 2 commits September 14, 2025 14:44
Co-authored-by: Victor Stinner <vstinner@python.org>
Comment thread Doc/c-api/init_config.rst Resolved
Comment thread Doc/using/cmdline.rst Resolved
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@StanFromIreland

Copy link
Copy Markdown
Member

FYI bedevere is still waiting for changes: #136363 (comment)

@sobolevn

Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again. To please the bot :)

@bedevere-app

bedevere-app Bot commented Sep 14, 2025

Copy link
Copy Markdown

Thanks for making the requested changes!

@malemburg: please review the changes made to this pull request.

@bedevere-app
bedevere-app Bot requested a review from malemburg September 14, 2025 15:07

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread Doc/using/cmdline.rst Resolved
@bedevere-app

bedevere-app Bot commented Sep 14, 2025

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@malemburg malemburg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I didn't see the original, just the suggestion. All good now.

@StanFromIreland StanFromIreland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sobolevn
sobolevn merged commit 1c984ba into python:main Sep 14, 2025
@sobolevn

Copy link
Copy Markdown
Member Author

Thanks everyone! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants