mirror of
https://github.com/python/cpython.git
synced 2025-01-27 03:24:35 +08:00
String values will now always be shown with quotes, so one can see the difference between the value 2 and the value '2'. -- jvr
This commit is contained in:
parent
5bd608d46e
commit
460ff20cd6
@ -22,9 +22,7 @@ def double_repr(key, value, truncvalue = 0,
|
||||
key = str(key)
|
||||
else:
|
||||
key = _repr(key)
|
||||
if type(value) == StringType and has_ctlchars(value) < 0:
|
||||
value = str(value)
|
||||
elif key == '__builtins__':
|
||||
if key == '__builtins__':
|
||||
value = "<" + type(value).__name__ + " '__builtin__'>"
|
||||
elif key == '__return__':
|
||||
# bleh, when returning from a class codeblock we get infinite recursion in repr.
|
||||
|
Loading…
Reference in New Issue
Block a user