classification
Title: The parameter name for imghdr.what in the documentation is wrong
Type: enhancement Stage: patch review
Components: Documentation Versions: Python 3.8
process
Status: open Resolution:
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 2020-07-21 00:50 by nanjekyejoannah.

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
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