[Python-checkins] r71056 - python/trunk/Lib/pdb.py

georg.brandl python-checkins at python.org
Thu Apr 2 19:43:07 CEST 2009


Author: georg.brandl
Date: Thu Apr 2 19:43:07 2009
New Revision: 71056
Log:
Actually the displayhook should print the repr.
Modified:
 python/trunk/Lib/pdb.py
Modified: python/trunk/Lib/pdb.py
==============================================================================
--- python/trunk/Lib/pdb.py	(original)
+++ python/trunk/Lib/pdb.py	Thu Apr 2 19:43:07 2009
@@ -206,7 +206,7 @@
 """Custom displayhook for the exec in default(), which prevents
 assignment of the _ variable in the builtins.
 """
- print obj
+ print repr(obj)
 
 def default(self, line):
 if line[:1] == '!': line = line[1:]


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /