[Python-Dev] String encoding
Fredrik Lundh" <email@example.com
Tue, 23 May 2000 17:16:42 +0200
M.-A. Lemburg <firstname.lastname@example.org> wrote:
> > before proceeding down this (not very slippery but slightly
> > unfortunate, imho) slope, I think we should decide whether
> > assert eval(repr(s)) == s
> > should be true for strings.
footnote: as far as I can tell, the language reference says it should:
> This is a different discussion which I don't really want to
> get into... I don't have any need for repr() being locale
> dependent, since I only use it for debugging purposes and
> never to rebuild objects (marshal and pickle are much better
> at that).
in other words, you leave it to 'pickle' to call 'repr' for you ;-)