Skip to content

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

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

gh-136355: Deprecate -b and -bb CLI flags in 3.15#136363
sobolevn merged 8 commits intopython:mainfrom
sobolevn:issue-136355

Conversation

@sobolevn
Copy link
Copy Markdown
Member

@sobolevn sobolevn commented Jul 7, 2025

Copy link
Copy Markdown
Member

@StanFromIreland StanFromIreland left a comment

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 Outdated
Comment thread Python/initconfig.c Outdated
Comment thread Python/initconfig.c Outdated
Copy link
Copy Markdown
Member

@malemburg malemburg left a comment

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
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Jul 7, 2025

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
Comment thread Doc/using/cmdline.rst Outdated
Comment thread Doc/whatsnew/3.15.rst Outdated
Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

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 Outdated
@sobolevn sobolevn requested a review from FFY00 as a code owner September 10, 2025 16:04
@sobolevn
Copy link
Copy Markdown
Member Author

sobolevn commented Sep 10, 2025

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 Outdated
Comment thread Doc/using/cmdline.rst Outdated
Comment thread Doc/whatsnew/3.15.rst Outdated
Comment thread Misc/NEWS.d/next/Core_and_Builtins/2025-07-07-12-24-00.gh-issue-136355.MTcA8j.rst Outdated
@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 Misc/NEWS.d/next/Core_and_Builtins/2025-07-07-12-24-00.gh-issue-136355.MTcA8j.rst Outdated
Comment thread Doc/c-api/init_config.rst Outdated
Comment thread Doc/c-api/init_config.rst Outdated
Comment thread Doc/using/cmdline.rst
@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
Copy link
Copy Markdown

bedevere-app Bot commented Sep 14, 2025

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
Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

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
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Sep 14, 2025

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

Copy link
Copy Markdown
Member

@malemburg malemburg left a comment

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.

Copy link
Copy Markdown
Member

@StanFromIreland StanFromIreland left a comment

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
56 of 61 checks passed
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants