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: The parameter name for imghdr.what in the documentation is wrong
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: aeltawela, ammar2, docs@python, nanjekyejoannah
Priority: normal Keywords: patch

Created on 2020-07-12 09:20 by aeltawela, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 21501 merged ammar2, 2020-07-16 01:33
PR 21573 open nanjekyejoannah, 2020-07-21 00:50
Messages (2)
msg373551 - (view) Author: Adam Eltawla (aeltawela) Date: 2020-07-12 09:20
I noticed the parameter name for imghdr.what in the documentation is wrong

Link: https://docs.python.org/3.8/library/imghdr.html?highlight=imghdr
function imghdr.what(filename, h=None)

In reality:
def what(file, h=None):

It is 'file' not 'filename'.
msg374040 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2020-07-21 00:22
New changeset 5241e189e77972d3a07acbbb3f0c0cbc2aeeb681 by Ammar Askar in branch 'master':
bpo-41283: Fix mismatched argument name for imghdr.what (GH-21501)
https://github.com/python/cpython/commit/5241e189e77972d3a07acbbb3f0c0cbc2aeeb681
History
Date User Action Args
2022-04-11 14:59:33adminsetgithub: 85455
2021-04-02 15:58:46ammar2setstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-07-21 00:50:28nanjekyejoannahsetpull_requests: + pull_request20716
2020-07-21 00:22:09nanjekyejoannahsetnosy: + nanjekyejoannah
messages: + msg374040
2020-07-16 01:33:41ammar2setkeywords: + patch
nosy: + ammar2

pull_requests: + pull_request20642
stage: patch review
2020-07-12 09:20:31aeltawelacreate