From dd98e04c5737554ebf6a3fe4ff0be304e8ec537a Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 2 Apr 2009 17:43:07 +0000 Subject: Actually the displayhook should print the repr. --- Lib/pdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:] -- cgit v0.12