Issue1681774

classification
Title: str.decode, unicode.encode and str(u'') fixes
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, pjenvey
Priority: normal Keywords: patch

Created on 2007-03-16.00:05:10 by pjenvey, last changed 2007-04-17.08:22:00 by cgroves.

Files
File name Uploaded Description Edit Remove
str_unicode_fixes-2.3_r3142.diff pjenvey, 2007-03-16.00:05:10 str and unicode fixes against branches/2.3 r3142
Messages
msg2680 (view) Author: Philip Jenvey (pjenvey) Date: 2007-03-16.00:05:10
This patch fixes:

o update str and unicode gexpose definitions for str.decode to return a unicode (instead of str) and unicode.encode to return a str (instead of unicode)
o overload PyString's __str__() method in PyUnicode to return a PyString instead of PyUnicode. Fixes str(u"") to return a str instead of unicode

I've also added/uncommented out a couple tests to exercise these changes

The patch is against r3142 of the 2.3 branch. This should probably be merged over to 2.2
msg2681 (view) Author: Charlie Groves (cgroves) Date: 2007-04-17.06:35:27
Applied to trunk in r3156.
msg2682 (view) Author: Charlie Groves (cgroves) Date: 2007-04-17.08:22:00
Added to 2.3 branch in r3161.
History
Date User Action Args
2007-03-16 00:05:10pjenveycreate