[issue10793] hashlib.hash.digest() documentation incorrect re return type

New submission from Thorsten Behrens <sbehrens@gmx.li>: 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. ---------- assignee: docs@python components: Documentation messages: 124892 nosy: docs@python, thorsten.behrens priority: normal severity: normal status: open title: hashlib.hash.digest() documentation incorrect re return type versions: Python 3.1, Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10793> _______________________________________

SilentGhost <michael.mischurow+bpo@gmail.com> added the comment: One-word patch attached. ---------- keywords: +patch nosy: +SilentGhost Added file: http://bugs.python.org/file20191/hashlib.rst.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10793> _______________________________________

Senthil Kumaran <orsenthil@gmail.com> added the comment: Fixed in r87573 and r87574 ---------- nosy: +orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10793> _______________________________________
participants (3)
-
Senthil Kumaran
-
SilentGhost
-
Thorsten Behrens