"Martin v. Löwis" writes: > The escaping that repr() does is *not* to achieve unambiguity, > but to achieve printability. Well, if that is the case, then I withdraw my comments pretty much entirely, and apologize for the noise. I think you've already specified what is needed to achieve printability correctly.