Skip to content

gh-99367: Do not mangle sys.path[0] in pdb if safe_path is set #111762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update phrasing
  • Loading branch information
gaogaotiantian committed Nov 27, 2023
commit d40d3db19e1c36e057d65d71ac1b127a1927ff46
6 changes: 3 additions & 3 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ pdb
identified and executed.
(Contributed by Tian Gao in :gh:`108464`.)

* ``sys.path[0]`` will no longer be mangled when ``sys.flags.safe_path`` is set (via the
:option:`-P` command line option or :envvar:`PYTHONSAFEPATH` environment
variable).
* ``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
Expand Down