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

Deprecate-b and-bb CLI flags #136355

Closed
Closed
Assignees
sobolevn
Labels
@sobolevn

Description

@sobolevn

Feature or enhancement

Discussion link:https://discuss.python.org/t/consider-deprecating-and-eventually-removing-b-cli-flag/96903

Currently-b and-bb CLI options do not provide much benefit, but has several corner-cases where they require some work-arounds.

My plan to deprecate them:

  • Use regularstderr output about a deprecation, do not raise a realDeprecationWarning object. Why? Becauseinitconfig.c does not have GIL yet to call C-API and real warnings can mess things up, since-b is also warnings-related. I guess docs + stderr output will be good enough. Downsides: warning filtering and-We and-Wi won't affect this warning.
  • 2 versions should be enough for the deprecation, since the only thing required is to simply remove-b from the command line args

Future plans:

  • After the deprecation will end in 3.17, I plan to remove-b and-bb options (there's an alternative to make them no-op, but it can be suprising for end users that they do nothing)
  • I also plan to remove code paths that requiresys.flags.bytes_warning to be set, no warnings will be produced as of 3.17

All other machinery will be kept as-is.

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp