[issue3198] strings don't seem to roundtrip with repr()
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Jun 25 15:51:07 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
repr() is supposed to round-trip with eval() for common types.
str() is the function that round-trips with the original type:
>>> x = 5
>>> x == int(str(x))
True
>>> x = "Test Text"
>>> x == str(str(x)) # :-)
True
----------
nosy: +amaury.forgeotdarc
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3198>
_______________________________________
More information about the Python-bugs-list
mailing list