You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
strings don't seem to roundtrip with repr()Β #47448
Activity
mark-summerfield commentedon Jun 25, 2008
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:
The reason is that an extra set of enclosing quotes are added.
amauryfa commentedon Jun 25, 2008
repr() is supposed to round-trip with eval() for common types.
str() is the function that round-trips with the original type: