Message1172

Author m_small
Recipients
Date 2006-06-21.21:32:07
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I'm seeing weird differences between repr() and
__repr__() that don't seem to appear in regular Python.

For example:

>>> foo='foo\b\n'
>>> repr(foo)
"'foo\\b\\n'"
>>> foo.__repr__()
'foo\b\n'

This is especially bad from Java, as the __repr__() is
all you have access to.  To reproduce from Java, I put
code in _codecs.java, in a new escape_encode function;
I'll submit this as part of my first pickle patch.
History
Date User Action Args
2008-02-20 17:17:31adminlinkissue1510227 messages
2008-02-20 17:17:31admincreate