Actually the displayhook should print the repr.

This commit is contained in:
Georg Brandl 2009-04-02 17:43:07 +00:00
parent 52720c5455
commit dd98e04c57
1 changed files with 1 additions and 1 deletions

View File

@ -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:]