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.

classification
Title: hashlib.hash.digest() documentation incorrect re return type
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.1, Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: SilentGhost, docs@python, orsenthil, thorsten.behrens
Priority: normal Keywords: patch

Created on 2010-12-30 00:24 by thorsten.behrens, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
hashlib.rst.diff SilentGhost, 2010-12-30 00:41
Messages (3)
msg124892 - (view) Author: Thorsten Behrens (thorsten.behrens) Date: 2010-12-30 00:24
The documentation for hashlib.hash.digest() states that digest() will "[r]eturn the digest of the data passed to the update() method so far. This is a bytes array of size digest_size[...]".

The returned object is of class 'bytes', not 'bytearray'. Documentation should reflect this.
msg124893 - (view) Author: SilentGhost (SilentGhost) * (Python triager) Date: 2010-12-30 00:41
One-word patch attached.
msg124908 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-12-30 07:21
Fixed in r87573 and r87574
History
Date User Action Args
2022-04-11 14:57:10adminsetgithub: 55002
2010-12-30 07:21:33orsenthilsetstatus: open -> closed

type: behavior

nosy: + orsenthil
messages: + msg124908
resolution: fixed
stage: resolved
2010-12-30 00:41:33SilentGhostsetfiles: + hashlib.rst.diff

nosy: + SilentGhost
messages: + msg124893

keywords: + patch
2010-12-30 00:24:30thorsten.behrenscreate