mirror of https://github.com/python/cpython
Actually the displayhook should print the repr.
This commit is contained in:
parent
52720c5455
commit
dd98e04c57
|
@ -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:]
|
||||
|
|
Loading…
Reference in New Issue