[issue3198] strings don't seem to roundtrip with repr()

2008-06-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 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:

[issue3198] strings don't seem to roundtrip with repr()

2008-06-25 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: With 2.5.2 and 30b1 strings don't round trip like numbers do. I guess it has been like this a long time so isn't a bug, but it does seem inconsistent. Both 2.5.2 and 30b1: >>> x = 5 >>> x == int(repr(x)) True >>> x = "Test Text" >>> x =