diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-06 02:53:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 02:53:00 (GMT) |
commit | 5f29268283aba12d4f2c83cab4966286e0ac5128 (patch) | |
tree | 9a89d91965ee5ee8d9d6e76e071e2181d521f089 /Doc/whatsnew | |
parent | 329afe78c3bbc234492a53f7a4084d07e215a077 (diff) | |
download | cpython-5f29268283aba12d4f2c83cab4966286e0ac5128.zip cpython-5f29268283aba12d4f2c83cab4966286e0ac5128.tar.gz cpython-5f29268283aba12d4f2c83cab4966286e0ac5128.tar.bz2 |
gh-57684: Document safe path in What's New in Python 3.11 (#92362)
Mention also -P and PYTHONSAFEPATH in the Security Considerations
page.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index efcfa17..c84b36f 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -79,6 +79,12 @@ New typing features: * :pep:`673`: ``Self`` type. * :pep:`675`: Arbitrary literal string type. +Security improvements: + +* New :option:`-P` command line option and :envvar:`PYTHONSAFEPATH` environment + variable to not prepend a potentially unsafe path to :data:`sys.path` such as + the current directory, the script's directory or an empty string. + New Features ============ |