Re: [Python-Dev] Issue 3745 backwards incompatibility

2009-12-15 Thread M.-A. Lemburg
Michael Foord wrote: > On 15/12/2009 11:23, M.-A. Lemburg wrote: >> Karen Tracey wrote: >> >>> In testing some existing code with the 2.7 alpha release, I've run into: >>> >>> TypeError: Unicode-objects must be encoded before hashing >>> >>> when the existing code tries to pass unicode obje

Re: [Python-Dev] Issue 3745 backwards incompatibility

2009-12-15 Thread Michael Foord
On 15/12/2009 11:23, M.-A. Lemburg wrote: Karen Tracey wrote: In testing some existing code with the 2.7 alpha release, I've run into: TypeError: Unicode-objects must be encoded before hashing when the existing code tries to pass unicode objects to hashlib.sha1 and hashlib.md5. This

Re: [Python-Dev] Issue 3745 backwards incompatibility

2009-12-15 Thread M.-A. Lemburg
Karen Tracey wrote: > In testing some existing code with the 2.7 alpha release, I've run into: > > TypeError: Unicode-objects must be encoded before hashing > > when the existing code tries to pass unicode objects to hashlib.sha1 and > hashlib.md5. This is, I believe, due to changes made for

[Python-Dev] Issue 3745 backwards incompatibility

2009-12-14 Thread Karen Tracey
In testing some existing code with the 2.7 alpha release, I've run into: TypeError: Unicode-objects must be encoded before hashing when the existing code tries to pass unicode objects to hashlib.sha1 and hashlib.md5. This is, I believe, due to changes made for issue 3745: http://bugs.python