]> granicus.if.org Git - python/commitdiff
Actually the displayhook should print the repr.
authorGeorg Brandl <georg@python.org>
Thu, 2 Apr 2009 17:43:07 +0000 (17:43 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 2 Apr 2009 17:43:07 +0000 (17:43 +0000)
Lib/pdb.py

index b00bbae45678d6bf9e030ddbc225c9f5a04ee5bb..2f42b312be729080cf6c729b8472129a822b87dd 100755 (executable)
@@ -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:]