-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Deprecate -b and -bb CLI flags #136355
Copy link
Copy link
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-sysconfigtype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-sysconfigtype-featureA feature request or enhancementA feature request or enhancement
Fields
Give feedbackNo fields configured for issues without a type.
Feature or enhancement
Discussion link: https://discuss.python.org/t/consider-deprecating-and-eventually-removing-b-cli-flag/96903
Currently
-band-bbCLI options do not provide much benefit, but has several corner-cases where they require some work-arounds.My plan to deprecate them:
stderroutput about a deprecation, do not raise a realDeprecationWarningobject. Why? Becauseinitconfig.cdoes not have GIL yet to call C-API and real warnings can mess things up, since-bis also warnings-related. I guess docs + stderr output will be good enough. Downsides: warning filtering and-Weand-Wiwon't affect this warning.-bfrom the command line argsFuture plans:
-band-bboptions (there's an alternative to make them no-op, but it can be suprising for end users that they do nothing)sys.flags.bytes_warningto be set, no warnings will be produced as of 3.17All other machinery will be kept as-is.
Linked PRs
-band-bbCLI flags in 3.15 #136363