There was an error while loading. Please reload this page.
1 parent c99f766 commit 68fcb95Copy full SHA for 68fcb95
2 files changed
Lib/pdb.py
@@ -364,7 +364,7 @@ def __init__(self, completekey='tab', stdin=None, stdout=None, skip=None,
364
bdb.Bdb.__init__(self, skip=skip, backend=backend if backend else get_default_backend())
365
cmd.Cmd.__init__(self, completekey, stdin, stdout)
366
sys.audit("pdb.Pdb")
367
- if stdin:
+ if stdin is not None and stdin is not sys.stdin:
368
self.use_rawinput = False
369
self.prompt = '(Pdb) '
370
self.aliases = {}
Misc/NEWS.d/next/Windows/2025-12-25-00-38-20.gh-issue-143082.CYUeux.rst
@@ -0,0 +1 @@
1
+Fix :mod:`pdb` arrow key history not working when ``stdin`` is ``sys.stdin``.
0 commit comments