From: Georg Brandl Date: Wed, 1 Apr 2009 21:05:44 +0000 (+0000) Subject: Add NEWS item. X-Git-Tag: v2.7a1~1625 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5942b91759de4a541cbde363aeae166c495b1e72;p=python Add NEWS item. --- diff --git a/Lib/pdb.py b/Lib/pdb.py index 3f76032cff..a7187b210c 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -194,6 +194,9 @@ class Pdb(bdb.Bdb, cmd.Cmd): self.cmdloop() self.forget() + def displayhook(self, item): + print item + def default(self, line): if line[:1] == '!': line = line[1:] locals = self.curframe.f_locals @@ -202,13 +205,16 @@ class Pdb(bdb.Bdb, cmd.Cmd): code = compile(line + '\n', '', 'single') save_stdout = sys.stdout save_stdin = sys.stdin + save_displayhook = sys.displayhook try: sys.stdin = self.stdin sys.stdout = self.stdout + sys.displayhook = self.displayhook exec code in globals, locals finally: sys.stdout = save_stdout sys.stdin = save_stdin + sys.displayhook = save_displayhook except: t, v = sys.exc_info()[:2] if type(t) == type(''): diff --git a/Misc/NEWS b/Misc/NEWS index 08552bf314..51291641e7 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -202,6 +202,8 @@ Core and Builtins Library ------- +- Issue #4572: added SEEK_* symbolic constants to io module. + - Issue #1665206 (partially): Move imports in cgitb to the top of the module instead of performing them in functions. Helps prevent import deadlocking in threads.