Re: [Python-Dev] Inconsistency in 2.4.3 for __repr__() returning unicode

2006-03-27 Thread Anthony Baxter
On Monday 27 March 2006 21:14, M.-A. Lemburg wrote: Change PyObject_Repr() to use the default encoding (again) which is also consistent with how PyObject_Str() works. For 2.4.3, I plan to just revert the following patch (and supply a test case) Index: Objects/object.c

Re: [Python-Dev] Inconsistency in 2.4.3 for __repr__() returning unicode

2006-03-27 Thread Anthony Baxter
Never mind. For 2.4.3, I reverted perky's patch for the unicode-escape, and reverted the old patch for PyObject_Repr on the trunk. After talking to perky and Neal, this seemed like the safest option for 2.4.3. Anthony ___ Python-Dev mailing list

[Python-Dev] Inconsistency in 2.4.3 for __repr__() returning unicode

2006-03-26 Thread Hye-Shik Chang
We got an inconsistency for __repr__() returning unicode as reported in http://python.org/sf/1459029 : class s1: def __repr__(self): return '\\n' class s2: def __repr__(self): return u'\\n' print repr(s1()), repr(s2()) Until 2.4.2: \n \n 2.4.3: \n \\n \\n looks bit