gh-91181: Add a What's New entry for dropping bytes support for `sys.path` (GH-94918)

(cherry picked from commit ec4745b5f2)

Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
Miss Islington (bot) 2022-07-16 19:23:57 -07:00 committed by GitHub
parent ccbf85382c
commit 5a34287b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -383,6 +383,13 @@ Other Language Changes
coerces negative zero to zero after rounding to the format precision. See
:pep:`682` for more details. (Contributed by John Belmonte in :gh:`90153`.)
* Bytes are no longer accepted on :attr:`sys.path`. Support broke sometime
between Python 3.2 and 3.6 with no one noticing until after Python 3.10.0
was released. Bringing back support would also be problematic due to
interactions between :option:`-b` and :attr:`sys.path_importer_cache` when
there is a mixture of strings and bytes keys.
(Contributed by Thomas Grainger in :gh:`91181`.)
Other CPython Implementation Changes
====================================