From: Georg Brandl Date: Thu, 2 Apr 2009 17:43:07 +0000 (+0000) Subject: Actually the displayhook should print the repr. X-Git-Tag: v2.7a1~1598 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd98e04c5737554ebf6a3fe4ff0be304e8ec537a;p=thirdparty%2FPython%2Fcpython.git Actually the displayhook should print the repr. --- diff --git a/Lib/pdb.py b/Lib/pdb.py index b00bbae45678..2f42b312be72 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:]