[Python-Dev] unicode hell/mixing str and unicode as dictionary keys
James Y Knight
foom at fuhm.net
Fri Aug 4 04:00:31 CEST 2006
On Aug 3, 2006, at 5:47 PM, M.-A. Lemburg wrote:
>> The only way this error could be the right thing is if you were
>> trying
>> to suggest that he shouldn't mix unicode and bytestrings at all.
>
> Good question. I wonder whether that's a reasonable approach for
> Python 2.x (I'd say it is for Py3k).
It's my understanding that in py3k, there will be no implicit
conversion, bytestrings and unicodes will never be equal (no matter
what the contents), and so this wouldn't be an issue. (as u"1" == "1"
would be the same sort of situation as 1 == "1" is now)
James
More information about the Python-Dev
mailing list