
Dec. 22, 2004
7:53 a.m.
Hi Tim, On Tue, Dec 21, 2004 at 05:21:29PM -0500, Tim Peters wrote:
we reverted to repr/eval, which is quite slower (and actually not guaranteed to work across Python versions either: string escapes sometimes change).
Really? The precise rules str's __repr__ uses for which escapes to produce certainly change, but I don't recall any case outside Unicodeland where a new string escape was ever introduced.
My mistake, I seemed to remember something along these lines but you are obviously right. Python 1.5.2 reads all escapes of a recent Python just fine. Armin