[Python-Dev] Re: [Python-checkins] python/dist/src/Objects stringobject.c, 2.219, 2.220 unicodeobject.c, 2.213, 2.214

Walter Dörwald walter at livinglogic.de
Thu Jul 8 20:42:40 CEST 2004

lemburg at users.sourceforge.net wrote:

> Modified Files:
> 	stringobject.c unicodeobject.c 
> Log Message:
> Allow string and unicode return types from .encode()/.decode()
> methods on string and unicode objects. Added unicode.decode()
> which was missing for no apparent reason.

This seems to have broken test_codeccallbacks.py. I get:
test_backslashescape (__main__.CodecCallbackTest) ... ok
test_badandgoodbackslashreplaceexceptions (__main__.CodecCallbackTest) 
... ok
test_badandgoodignoreexceptions (__main__.CodecCallbackTest) ... ok
test_badandgoodreplaceexceptions (__main__.CodecCallbackTest) ... ok
test_badandgoodstrictexceptions (__main__.CodecCallbackTest) ... ok
test_badandgoodxmlcharrefreplaceexceptions (__main__.CodecCallbackTest) 
... ok
Segmentation fault

Rolling back the patch via:
cvs up -j 2.44 -j 2.43 Include/unicodeobject.h
cvs up -j 2.220 -j 2.219 Objects/stringobject.c
cvs up -j 2.214 -j 2.213 Objects/unicodeobject.c
gives a working test_codeccallbacks.py again.

    Walter Dörwald

More information about the Python-Dev mailing list