]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91181: Add a What's New entry for dropping bytes support for `sys.path` (GH-94918)
authorBrett Cannon <brett@python.org>
Sun, 17 Jul 2022 02:14:40 +0000 (19:14 -0700)
committerGitHub <noreply@github.com>
Sun, 17 Jul 2022 02:14:40 +0000 (19:14 -0700)
Doc/whatsnew/3.11.rst

index f7274a8cea1589a338aa086079bfef10f05a7524..63afbbb7f18e0b4f116238aee7f98faab7c70ce5 100644 (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
 ====================================