You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pdb: some expression results are printed to the debuggee stdout #143874
In a dual-terminal / remote debugging setup, some expressions evaluated in pdb print their results to the debuggee’s stdout instead of the pdb output stream. For example, at the pdb prompt:
(lambda: 123)()
sum(i for i in (1, 2, 3))
their results appear in the remote/debuggee terminal. I have screenshots and a minimal test case demonstrating the issue.
Activity
gh-143874: Use self.message instead of raw print in `_exec_in_closure…
johnslavik commentedon Jan 20, 2026
@gaogaotiantian, do we backport #143875 or should this be closed?
pythongh-143874: Use self.message instead of raw print in `_exec_in_c…
gaogaotiantian commentedon Jan 20, 2026
@johnslavik good catch! This should be backported to 3.14. I'll work on it.
[3.14] gh-143874: Use self.message instead of raw print in `_exec_in_…
pythongh-143874: Use self.message instead of raw print in `_exec_in_c…