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

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
sobolevn 2025-09-14 20:00:03 +03:00 committed by GitHub
parent 8b5ce31c2b
commit 1c984ba953
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 0 deletions

View file

@ -258,6 +258,7 @@ static const char usage_help[] = "\
Options (and corresponding environment variables):\n\
-b : issue warnings about converting bytes/bytearray to str and comparing\n\
bytes/bytearray with str or bytes with int. (-bb: issue errors)\n\
deprecated since 3.15 and will become no-op in 3.17.\n\
-B : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x\n\
-c cmd : program passed in as string (terminates option list)\n\
-d : turn on parser debugging output (for experts only, only works on\n\