This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vvro
Recipients lemburg, rhettinger, vvro
Date 2008-05-23.04:19:43
SpamBayes Score 0.028144665
Marked as misclassified No
Message-id <1211516387.32.0.42669801003.issue2948@psf.upfronthosting.co.za>
In-reply-to
Content
You could just make a check for unicode strings and issue the encode in
the hash function.
I understand the byte abstraction, but if you issue an encode on a
unicode string with only ascii chars it gets converted to the same in
ascii, result will be the same.

So i got to do md5(u'joão'.encode("utf-8"))?
Wasn't unicode becoming the default?

If I do md5(u'john'), it works. And that's a unicode string. It should
have told me, no unicode then...
History
Date User Action Args
2008-05-23 04:19:48vvrosetspambayes_score: 0.0281447 -> 0.028144665
recipients: + vvro, lemburg, rhettinger
2008-05-23 04:19:47vvrosetspambayes_score: 0.0281447 -> 0.0281447
messageid: <1211516387.32.0.42669801003.issue2948@psf.upfronthosting.co.za>
2008-05-23 04:19:45vvrolinkissue2948 messages
2008-05-23 04:19:44vvrocreate