[issue41283] The parameter name for imghdr.what in the documentation is wrong
New submission from Adam Eltawla <bekerpico@gmail.com>: 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'. ---------- assignee: docs@python components: Documentation messages: 373551 nosy: aeltawela, docs@python priority: normal severity: normal status: open title: The parameter name for imghdr.what in the documentation is wrong type: enhancement versions: Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41283> _______________________________________
Change by Ammar Askar <ammar@ammaraskar.com>: ---------- keywords: +patch nosy: +ammar2 nosy_count: 2.0 -> 3.0 pull_requests: +20642 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21501 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41283> _______________________________________
Joannah Nanjekye <nanjekyejoannah@gmail.com> added the comment: 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/5241e189e77972d3a07acbbb3f0c0cbc2ae... ---------- nosy: +nanjekyejoannah _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41283> _______________________________________
Change by Joannah Nanjekye <nanjekyejoannah@gmail.com>: ---------- pull_requests: +20716 pull_request: https://github.com/python/cpython/pull/21573 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41283> _______________________________________
Change by Ammar Askar <ammar@ammaraskar.com>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue41283> _______________________________________
participants (3)
-
Adam Eltawla
-
Ammar Askar
-
Joannah Nanjekye