[New-bugs-announce] [issue26390] hashlib's pbkdf2_hmac documentation "rounds" does not match source

Daan Bakker report at bugs.python.org
Thu Feb 18 19:00:57 EST 2016


New submission from Daan Bakker:

The documentation for pbkdf2_hmac at https://docs.python.org/3/library/hashlib.html uses the "rounds" keyword:

hashlib.pbkdf2_hmac(name, password, salt, rounds, dklen=None)

However, the actual source code uses "iterations". No-one has probably noticed it before because no error is raised if the number of iterations is given as a positional argument.

----------
assignee: docs at python
components: Documentation
files: pbkdf2_4.patch
keywords: patch
messages: 260490
nosy: dbakker, docs at python
priority: normal
severity: normal
status: open
title: hashlib's pbkdf2_hmac documentation "rounds" does not match source
type: enhancement
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file41963/pbkdf2_4.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26390>
_______________________________________


More information about the New-bugs-announce mailing list