mirror of
https://github.com/python/cpython.git
synced 2026-03-27 15:10:56 +00:00
Actually the displayhook should print the repr.
This commit is contained in:
parent
52720c5455
commit
dd98e04c57
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ def displayhook(self, obj):
|
|||
"""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…
Add table
Add a link
Reference in a new issue