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.

Author corona10
Recipients corona10
Date 2019-06-16.04:55:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560660909.55.0.86099057914.issue37303@roundup.psfhosted.org>
In-reply-to
Content
Still https://github.com/python/cpython/blob/3a1d50e7e573efb577714146bed5c03b9c95f466/Lib/imghdr.py#L11 signature is def what(file, h=None).

I 'd like to suggest to update it into def what(filename, h=None)
Also, the doc of imghdr represents it as the filename.
https://docs.python.org/3/library/imghdr.html

note that sndhdr is already using this name.
https://github.com/python/cpython/blob/3a1d50e7e573efb577714146bed5c03b9c95f466/Lib/sndhdr.py#L52

If this proposal is accepted, I'd like to send a patch for it.
History
Date User Action Args
2019-06-16 04:55:09corona10setrecipients: + corona10
2019-06-16 04:55:09corona10setmessageid: <1560660909.55.0.86099057914.issue37303@roundup.psfhosted.org>
2019-06-16 04:55:09corona10linkissue37303 messages
2019-06-16 04:55:09corona10create