Skip to content

Commit ec4745b

Browse files
authored
gh-91181: Add a What's New entry for dropping bytes support for sys.path (GH-94918)
1 parent c20186c commit ec4745b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/whatsnew/3.11.rst

+7
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,13 @@ Other Language Changes
383383
coerces negative zero to zero after rounding to the format precision. See
384384
:pep:`682` for more details. (Contributed by John Belmonte in :gh:`90153`.)
385385

386+
* Bytes are no longer accepted on :attr:`sys.path`. Support broke sometime
387+
between Python 3.2 and 3.6 with no one noticing until after Python 3.10.0
388+
was released. Bringing back support would also be problematic due to
389+
interactions between :option:`-b` and :attr:`sys.path_importer_cache` when
390+
there is a mixture of strings and bytes keys.
391+
(Contributed by Thomas Grainger in :gh:`91181`.)
392+
386393
Other CPython Implementation Changes
387394
====================================
388395

0 commit comments

Comments
 (0)