[New-bugs-announce] [issue10793] hashlib.hash.digest() documentation incorrect re return type

Thorsten Behrens report at bugs.python.org
Thu Dec 30 01:24:32 CET 2010


New submission from Thorsten Behrens <sbehrens at 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 at python
components: Documentation
messages: 124892
nosy: docs at 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 at bugs.python.org>
<http://bugs.python.org/issue10793>
_______________________________________


More information about the New-bugs-announce mailing list