You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
David Ripton schrieb:
> New submission from David Ripton:
>
> The hashlib module seems not to work at all:
>
> $ python3.0
> Python 3.0a1 (py3k, Sep 5 2007, 08:17:11)
> [GCC 4.1.2 (Gentoo 4.1.2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import hashlib
>>>> m = hashlib.md5()
>>>> m.update("Nobody inspects")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: object supporting the buffer API required
hashlib only accepts bytes for its digests, since the algorithms work
on bytes, not characters.
Unfortunately, this isn't documented yet, but I'll do that now.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: