FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-136355: Deprecate `-b` and `-bb` CLI flags in 3.15 by sobolevn · Pull Request #136363 · python/cpython · GitHub

Repository navigation

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 commented Jul 7, 2025 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Apart from the wording changes, this LGTM.

Comment thread Doc/whatsnew/3.15.rst

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

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 requested a review from AA-Turner as a code owner September 10, 2025 15:50
Comment thread Doc/using/cmdline.rst Outdated
sobolevn requested a review from FFY00 as a code owner September 10, 2025 16:04

sobolevn commented Sep 10, 2025 •
edited
Loading

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

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 Outdated
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 Outdated
Comment thread Doc/using/cmdline.rst
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member Author

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

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 Bot requested a review from malemburg September 14, 2025 15:07

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Comment thread Doc/using/cmdline.rst

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 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

sobolevn merged commit 1c984ba into python:main Sep 14, 2025
56 of 61 checks passed

Copy link
Copy Markdown
Member Author

Thanks everyone! 👍

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL