Skip to content

Commit dd98e04

Browse files
committed
Actually the displayhook should print the repr.
1 parent 52720c5 commit dd98e04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def displayhook(self, obj):
206206
"""Custom displayhook for the exec in default(), which prevents
207207
assignment of the _ variable in the builtins.
208208
"""
209-
print obj
209+
print repr(obj)
210210

211211
def default(self, line):
212212
if line[:1] == '!': line = line[1:]

0 commit comments

Comments
 (0)