summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2023-11-27 23:11:40 (GMT)
committerGitHub <noreply@github.com>2023-11-27 23:11:40 (GMT)
commitb90a5cf11cdb69e60aed7be732e80113bca7bbe4 (patch)
tree2b6c903d11ec948baf80ba163f01978189a72b5b /Doc
parent8f71b349de1ff2b11223ff7a8241c62a5a932339 (diff)
downloadcpython-b90a5cf11cdb69e60aed7be732e80113bca7bbe4.zip
cpython-b90a5cf11cdb69e60aed7be732e80113bca7bbe4.tar.gz
cpython-b90a5cf11cdb69e60aed7be732e80113bca7bbe4.tar.bz2
gh-99367: Do not mangle sys.path[0] in pdb if safe_path is set (#111762)
Co-authored-by: Christian Walther <cwalther@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.13.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index dad49f4..bf6a70f 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -285,6 +285,11 @@ pdb
identified and executed.
(Contributed by Tian Gao in :gh:`108464`.)
+* ``sys.path[0]`` will no longer be replaced by the directory of the script
+ being debugged when ``sys.flags.safe_path`` is set (via the :option:`-P`
+ command line option or :envvar:`PYTHONSAFEPATH` environment variable).
+ (Contributed by Tian Gao and Christian Walther in :gh:`111762`.)
+
sqlite3
-------