[New-bugs-announce] [issue1263] PEP 3137 patch - str8/str comparison should return false

Thomas Lee report at bugs.python.org
Thu Oct 11 14:20:47 CEST 2007


New submission from Thomas Lee:

The main patch - while exactly what is needed to make str8/str equality
checks return False - breaks a bunch of tests due to PyString_* still
being used elsewhere when it should be using PyUnicode.

The second patch modifies structmember.c to use PyUnicode_* where it was
previously using PyString_*, which fixes the first problem I stumbled
across in trying to get test_unicode to run.

Unfortunately, similar errors are present in Python/codecs.c and other
places (maybe Python/modsupport.c too? not 100% sure yet) - these still
need to be fixed!

----------
components: Interpreter Core
files: unicode-string-eq-false-r2.patch
messages: 56343
nosy: thomas.lee
severity: normal
status: open
title: PEP 3137 patch - str8/str comparison should return false
type: rfe
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1263>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unicode-string-eq-false-r2.patch
Type: text/x-patch
Size: 1953 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071011/5547548e/attachment.bin 


More information about the New-bugs-announce mailing list