[issue4771] Bad examples in hashlib documentation

2008-12-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r68027. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue4771] Bad examples in hashlib documentation

2008-12-29 Thread David M. Beazley
David M. Beazley added the comment: The digest() method of hashes does produce bytes (correct). The hexdigest() method produces a string, but it is also shown as producing bytes in the examples. ___ Python tracker _

[issue4771] Bad examples in hashlib documentation

2008-12-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Shouldn't hash algorithms give bytes results anyway? -- components: +Library (Lib) -Documentation nosy: +benjamin.peterson priority: -> release blocker ___ Python tracker _

[issue4771] Bad examples in hashlib documentation

2008-12-29 Thread David M. Beazley
New submission from David M. Beazley : The hashlib documentation has incorrect examples showing the use of the hexdigest() method: >>> hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest() b'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' >>> and this one >>> h = h