[Python-checkins] r70993 - in python/trunk: Lib/pdb.py Misc/NEWS
georg.brandl
python-checkins at python.org
Wed Apr 1 23:05:44 CEST 2009
Author: georg.brandl
Date: Wed Apr 1 23:05:44 2009
New Revision: 70993
Log:
Add NEWS item.
Modified:
python/trunk/Lib/pdb.py
python/trunk/Misc/NEWS
Modified: python/trunk/Lib/pdb.py
==============================================================================
--- python/trunk/Lib/pdb.py (original)
+++ python/trunk/Lib/pdb.py Wed Apr 1 23:05:44 2009
@@ -194,6 +194,9 @@
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 @@
code = compile(line + '\n', '<stdin>', '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(''):
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Wed Apr 1 23:05:44 2009
@@ -202,6 +202,8 @@
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.
More information about the Python-checkins
mailing list