summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-02 17:43:07 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-02 17:43:07 (GMT)
commitdd98e04c5737554ebf6a3fe4ff0be304e8ec537a (patch)
treec8edb1b98fc237a87f3e8bf7b16745d76f0632b5
parent52720c5455c3cfe200988aead6252e60ed507738 (diff)
downloadcpython-dd98e04c5737554ebf6a3fe4ff0be304e8ec537a.zip
cpython-dd98e04c5737554ebf6a3fe4ff0be304e8ec537a.tar.gz
cpython-dd98e04c5737554ebf6a3fe4ff0be304e8ec537a.tar.bz2
Actually the displayhook should print the repr.
-rwxr-xr-xLib/pdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index b00bbae..2f42b31 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -206,7 +206,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
"""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:]