Author: georg.brandl Date: Fri Jul 30 11:59:28 2010 New Revision: 83271 Log: #5727: Restore the ability to use readline when calling into pdb in doctests. Modified: python/branches/py3k/Lib/doctest.py python/branches/py3k/Misc/NEWS Modified: python/branches/py3k/Lib/doctest.py ============================================================================== --- python/branches/py3k/Lib/doctest.py (original) +++ python/branches/py3k/Lib/doctest.py Fri Jul 30 11:59:28 2010 @@ -318,6 +318,8 @@ self.__out = out self.__debugger_used = False pdb.Pdb.__init__(self, stdout=out) + # still use input() to get user input + self.use_rawinput = 1 def set_trace(self, frame=None): self.__debugger_used = True Modified: python/branches/py3k/Misc/NEWS ============================================================================== --- python/branches/py3k/Misc/NEWS (original) +++ python/branches/py3k/Misc/NEWS Fri Jul 30 11:59:28 2010 @@ -475,6 +475,9 @@ Library ------- +- Issue #5727: Restore the ability to use readline when calling into pdb + in doctests. + - Issue #6719: In pdb, do not stop somewhere in the encodings machinery if the source file to be debugged is in a non-builtin encoding.