◐ Shell
clean mode source ↗

gh-142315: Don't pass the "real path" of Pdb script target to system functions by johnslavik · Pull Request #142371 · python/cpython

@johnslavik johnslavik changed the title Don't pass the "real path" of Pdb script target to system functions gh-142315: Don't pass the "real path" of Pdb script target to system functions

Dec 7, 2025

@johnslavik

@johnslavik

jaraco

@jaraco

@johnslavik

@jaraco

@jaraco

@jaraco

…sage there."

This reverts commit 855aac3.

@jaraco

@jaraco

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Dec 10, 2025
…ystem functions (pythonGH-142371)

* Pick target depending on preconditions

* Clarify the news fragment

* Add test capturing missed expectation.

* Add more idiomatic safe realpath helper

* Restore logic where existance and directoriness are checked on realpath.

* Link GH issue to test.

* Extract a function to check the target. Remove the _safe_realpath, now no longer needed.

* Extract method for replacing sys_path, and isolate realpath usage there.

* Revert "Extract method for replacing sys_path, and isolate realpath usage there."

This reverts commit 855aac3.

* Restore _safe_realpath.

---------
(cherry picked from commit d716e3b)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Dec 10, 2025
…ystem functions (pythonGH-142371)

* Pick target depending on preconditions

* Clarify the news fragment

* Add test capturing missed expectation.

* Add more idiomatic safe realpath helper

* Restore logic where existance and directoriness are checked on realpath.

* Link GH issue to test.

* Extract a function to check the target. Remove the _safe_realpath, now no longer needed.

* Extract method for replacing sys_path, and isolate realpath usage there.

* Revert "Extract method for replacing sys_path, and isolate realpath usage there."

This reverts commit 855aac3.

* Restore _safe_realpath.

---------
(cherry picked from commit d716e3b)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

jaraco added a commit that referenced this pull request

Dec 16, 2025
…system functions (GH-142371) (#142497)

gh-142315: Don't pass the "real path" of Pdb script target to system functions (GH-142371)

* Pick target depending on preconditions

* Clarify the news fragment

* Add test capturing missed expectation.

* Add more idiomatic safe realpath helper

* Restore logic where existance and directoriness are checked on realpath.

* Link GH issue to test.

* Extract a function to check the target. Remove the _safe_realpath, now no longer needed.

* Extract method for replacing sys_path, and isolate realpath usage there.

* Revert "Extract method for replacing sys_path, and isolate realpath usage there."

This reverts commit 855aac3.

* Restore _safe_realpath.

---------
(cherry picked from commit d716e3b)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

jaraco added a commit that referenced this pull request

Dec 16, 2025
…system functions (GH-142371) (#142498)

gh-142315: Don't pass the "real path" of Pdb script target to system functions (GH-142371

---------
(cherry picked from commit d716e3b)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

@johnslavik johnslavik deleted the pdb-realpath-pseudofs-problem branch

April 20, 2026 23:17